From 1e64d65f2aa75817294fe76937f0170bf8d4f81a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 3 Dec 2009 16:13:02 -0800 Subject: Preserve ssh host keys in install-image Similar to previous change to install-system --- scripts/install/install-postinst-new | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/install/install-postinst-new') 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 -- cgit v1.2.3