diff options
author | hydrajump <wave@hydrajump.com> | 2014-04-28 21:34:50 +0200 |
---|---|---|
committer | hydrajump <wave@hydrajump.com> | 2014-04-28 21:34:50 +0200 |
commit | b1c49eca75ad30d17596f3062f33542c4139817f (patch) | |
tree | 27867a539353c90b4b9cde385d14fb4805039047 /debian | |
parent | c02405850b592c99d00697b69115cd112b9592ee (diff) | |
download | vyatta-cfg-system-b1c49eca75ad30d17596f3062f33542c4139817f.tar.gz vyatta-cfg-system-b1c49eca75ad30d17596f3062f33542c4139817f.zip |
Add support for installing a new image on the Amazon AMI
- Check if installing on AWS EC2 platform via instance metadata.
- Configure GRUB correctly, so that boot messages are available
via instance's console.
- Add init.d script to fetch user's EC2 public key during boot.
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index fde99041..a89ef711 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -211,6 +211,14 @@ done # add vyatta-config-reboot-params to start at boot up update-rc.d vyatta-config-reboot-params start 20 S +# Enable ec2-fetch-ssh-public-key init script +if [ -f "$sysconfdir"/config/.aws ]; then + insserv ec2-fetch-ssh-public-key --default + + # Remove temp. file from install-image-existing L50 + rm "$sysconfdir"/config/.aws +fi + # Local Variables: # mode: shell-script # sh-indentation: 4 |