diff --git a/global/overlay/etc/puppet/modules/eid/templates/kvm/bootstrap-cosmos.sh.erb b/global/overlay/etc/puppet/modules/eid/templates/kvm/bootstrap-cosmos.sh.erb index 449fe1b0..47883d8a 100755 --- a/global/overlay/etc/puppet/modules/eid/templates/kvm/bootstrap-cosmos.sh.erb +++ b/global/overlay/etc/puppet/modules/eid/templates/kvm/bootstrap-cosmos.sh.erb @@ -55,6 +55,13 @@ if ! test -d /var/cache/cosmos/repo; then cosmos clone "$cmd_repo" fi + +if [ ! -f /etc/rc.local ]; then + echo "#!/bin/bash" > /etc/rc.local + echo > /etc/rc.local + chmod +x /etc/rc.local +fi + if [ -f /etc/rc.local ]; then # re-run cosmos at reboot until it succeeds - use bash -l to get working proxy settings grep -v "^exit 0" /etc/rc.local > /etc/rc.local.new