Fix root login #3

pull/8/head
Bohan Yang 5 years ago
parent 4c167f7c91
commit 874103f467
  1. 6
      netboot.sh

@ -295,7 +295,10 @@ if [ "$DEBI_SKIP_USER" != true ]; then
EOF EOF
if [ "$DEBI_USERNAME" = root ]; then if [ "$DEBI_USERNAME" = root ]; then
echo 'd-i passwd/make-user boolean false' | $save_preseed $save_preseed << EOF
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
EOF
if [ "$DEBI_CLEARTEXT" = true ]; then if [ "$DEBI_CLEARTEXT" = true ]; then
$save_preseed << EOF $save_preseed << EOF
d-i passwd/root-password password $DEBI_PASSWORD d-i passwd/root-password password $DEBI_PASSWORD
@ -307,6 +310,7 @@ EOF
else else
$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/user-fullname string d-i passwd/user-fullname string
d-i passwd/username string $DEBI_USERNAME d-i passwd/username string $DEBI_USERNAME
EOF EOF

Loading…
Cancel
Save