mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Network console update
This commit is contained in:
+10
-5
@@ -233,11 +233,16 @@ d-i anna/choose_modules string network-console
|
|||||||
d-i preseed/early_command string anna-install network-console
|
d-i preseed/early_command string anna-install network-console
|
||||||
EOF
|
EOF
|
||||||
if [ -n "$DEBI_SSH_PASSWORD" ]; then
|
if [ -n "$DEBI_SSH_PASSWORD" ]; then
|
||||||
echo "d-i network-console/password password $DEBI_SSH_PASSWORD" | $save_preseed
|
$save_preseed << EOF
|
||||||
echo "d-i network-console/password-again password $DEBI_SSH_PASSWORD" | $save_preseed
|
d-i network-console/password-disabled boolean false
|
||||||
fi
|
d-i network-console/password password $DEBI_SSH_PASSWORD
|
||||||
if [ -n "$DEBI_SSH_KEYS" ]; then
|
d-i network-console/password-again password $DEBI_SSH_PASSWORD
|
||||||
echo "d-i network-console/authorized_keys_url string $DEBI_SSH_KEYS" | $save_preseed
|
EOF
|
||||||
|
elif [ -n "$DEBI_SSH_KEYS" ]; then
|
||||||
|
$save_preseed << EOF
|
||||||
|
d-i network-console/password-disabled boolean true
|
||||||
|
d-i network-console/authorized_keys_url string $DEBI_SSH_KEYS
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
echo 'd-i network-console/start select Continue' | $save_preseed
|
echo 'd-i network-console/start select Continue' | $save_preseed
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user