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
1 changed files with 5 additions and 0 deletions

View File

@ -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