From 12efa249786039ff11681c0182e0b0615bbb80ba Mon Sep 17 00:00:00 2001 From: Skip Grube Date: Sat, 31 Jul 2021 22:24:38 +0000 Subject: [PATCH] Added comments and re-added the SSH key removal. Users should have their own SSH keys generated on their own hardware at first boot -Skip G. --- Rocky8_Rpi4.ks | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rocky8_Rpi4.ks b/Rocky8_Rpi4.ks index 2f8e2ee..9561c25 100644 --- a/Rocky8_Rpi4.ks +++ b/Rocky8_Rpi4.ks @@ -60,6 +60,11 @@ aarch64-img-extra-config # Post install scripts: %post +# Ensure no ssh keys are present +# (User's machine should generate them on first boot) +rm -f /etc/ssh/*_key* + +# Write initial boot line to cmdline.txt (we will update the root partuuid further down) cat > /boot/cmdline.txt << EOF console=ttyAMA0,115200 console=tty1 root= rootfstype=ext4 elevator=deadline rootwait EOF