From cbaa41987227dc51891dd4bfe0d0acf260ad4a44 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Mon, 3 Jul 2017 11:47:46 +0000 Subject: [PATCH] Organize code --- build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e046bab..5038c46 100755 --- a/build.sh +++ b/build.sh @@ -286,7 +286,6 @@ EOF apply_patches "$BASE_DIR/patches/02" -install -m 644 files/regenerate_ssh_host_keys.service "$ROOTFS_DIR/lib/systemd/system/" install -d "$ROOTFS_DIR/etc/systemd/system/rc-local.service.d" install -m 644 files/ttyoutput.conf "$ROOTFS_DIR/etc/systemd/system/rc-local.service.d/" install -m 644 files/50raspi "$ROOTFS_DIR/etc/apt/apt.conf.d/" @@ -295,7 +294,6 @@ install -m 644 files/console-setup "$ROOTFS_DIR/etc/default/" chroot_rootfs << EOF systemctl disable hwclock.sh systemctl disable rpcbind -systemctl enable regenerate_ssh_host_keys EOF chroot_rootfs << EOF @@ -306,6 +304,13 @@ chroot_rootfs << EOF setupcon --force --save-only -v EOF +## +# ????? +# +install -m 644 files/regenerate_ssh_host_keys.service "$ROOTFS_DIR/lib/systemd/system/" + +chroot_rootfs 'systemctl enable regenerate_ssh_host_keys' + rm -f "$ROOTFS_DIR/etc/ssh/ssh_host_*_key*" ##