From 8f127bfbf54900f53ab79e03d464b785229b6a0d Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Wed, 23 Sep 2020 20:17:58 +0800 Subject: [PATCH] Update --- netboot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/netboot.sh b/netboot.sh index bae887b..7950dd7 100644 --- a/netboot.sh +++ b/netboot.sh @@ -350,6 +350,7 @@ EOF echo "d-i passwd/root-password-crypted password $password" | $save_preseed fi else + _late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin no/" /etc/ssh/sshd_config' $save_preseed << EOF d-i passwd/root-login boolean false d-i passwd/make-user boolean true