From 0841697447d8d7ec1814c6962525b53278e63c69 Mon Sep 17 00:00:00 2001 From: hydrajump Date: Tue, 6 May 2014 21:36:28 +0200 Subject: Fix to enable ec2-fetch-ssh-public-key init script The init script was not running on boot because the init script symlinks were not created in /etc/rcX.d for the runlevels: 2,3,4,5. This fix runs the update-rc.d command in the is_amazon_ec2_ami function, thus creating the required symlinks and also updating /etc/init.d/.depends.on.start. --- scripts/install/install-image-existing | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index fcdb1651..50526b5f 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -44,10 +44,8 @@ is_amazon_ec2_ami () { if [ -n "$ami_id" ]; then echo "Installing on VyOS AMI" - # Create a temporary file to provide conditional - # check for init.d config in - # /debian/vyatta-cfg-system.postinst.in L215 - touch ${INST_ROOT}${VYATTA_CFG_DIR}/.aws + # Create init script links for /etc/init.d/ec2-fetch-ssh-public-key + chroot $INST_ROOT update-rc.d ec2-fetch-ssh-public-key defaults &>/dev/null fi } -- cgit v1.2.3