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