diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-03 16:13:02 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-03 16:13:02 -0800 |
commit | 1e64d65f2aa75817294fe76937f0170bf8d4f81a (patch) | |
tree | b234afa0e67474e18c234d47c909a67e8aa636b8 /scripts/install/install-postinst-new | |
parent | 1a16bbc6fbe43233b43b0c82092d248880448b17 (diff) | |
download | vyatta-cfg-quagga-1e64d65f2aa75817294fe76937f0170bf8d4f81a.tar.gz vyatta-cfg-quagga-1e64d65f2aa75817294fe76937f0170bf8d4f81a.zip |
Preserve ssh host keys in install-image
Similar to previous change to install-system
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-x | scripts/install/install-postinst-new | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new index 84b96989..d2187434 100755 --- a/scripts/install/install-postinst-new +++ b/scripts/install/install-postinst-new @@ -77,6 +77,12 @@ copy_config () { chgrp vyattacfg $cfg_dir/config.boot chmod 775 $cfg_dir/config.boot fi + + # copy ssh keys + if [ -d /mnt/ssh ]; then + echo "Copying SSH keys." + cp -p /mnt/ssh/* $rootfsdir/etc/ssh + fi } # setup grub on the boot sector of a user selected drive |