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.
This commit is contained in:
Skip Grube 2021-07-31 22:24:38 +00:00
parent 7821ece9b2
commit 12efa24978

View File

@ -60,6 +60,11 @@ aarch64-img-extra-config
# Post install scripts: # Post install scripts:
%post %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 cat > /boot/cmdline.txt << EOF
console=ttyAMA0,115200 console=tty1 root= rootfstype=ext4 elevator=deadline rootwait console=ttyAMA0,115200 console=tty1 root= rootfstype=ext4 elevator=deadline rootwait
EOF EOF