pull/8/head
Bohan Yang 5 years ago
parent 9c5b44056b
commit 8f127bfbf5
  1. 1
      netboot.sh

@ -350,6 +350,7 @@ EOF
echo "d-i passwd/root-password-crypted password $password" | $save_preseed echo "d-i passwd/root-password-crypted password $password" | $save_preseed
fi fi
else else
_late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin no/" /etc/ssh/sshd_config'
$save_preseed << EOF $save_preseed << EOF
d-i passwd/root-login boolean false d-i passwd/root-login boolean false
d-i passwd/make-user boolean true d-i passwd/make-user boolean true

Loading…
Cancel
Save