Skip to content
Browse files

Moving to Fedora 16, forking to avoid init script timeout

  • Loading branch information...
1 parent c48e72d commit fdd4c8c4801c75801af51d0ca62a7887934d964d Greg DeKoenigsberg committed Aug 3, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 bash/{centos → fedora}/openshift-origin-on-fedora16.sh
View
7 bash/centos/openshift-origin-on-fedora16.sh → bash/fedora/openshift-origin-on-fedora16.sh
@@ -40,6 +40,10 @@ hostname ${FULL_HOSTNAME}
sed -i -e "s/\(localhost.localdomain\)/${SHORT_HOST} ${FULL_HOSTNAME} \1/" /etc/hosts
echo -n ${FULL_HOSTNAME} >> /etc/sysconfig/network
+# Write this into a script to be forked separately. This is to work around
+# the systemd timeout issue. Future versions of cloud-init should perhaps
+# handle this case.
+cat >> /root/boot-script.bash <<EOF
yum -y update 1>/tmp/01.out 2>/tmp/01.err
yum -y install mock 1>/tmp/02.out 2>/tmp/02.err
@@ -52,3 +56,6 @@ su builder -c "cd /home/builder/crankcase" 1>/tmp/08.out 2>/tmp/08.err
cd /home/builder/crankcase/build ; rake build_setup 1>/tmp/09.out 2>/tmp/09.err
cd /home/builder/crankcase/build ; rake build 1>/tmp/10.out 2>/tmp/10.err
cd /home/builder/crankcase/build ; rake install_broker 1>/tmp/11.out 2>/tmp/11.err
+EOF
+
+/bin/bash /root/boot-script.bash &

0 comments on commit fdd4c8c

Please sign in to comment.
Something went wrong with that request. Please try again.