|
@@ -433,6 +433,13 @@ if [ -n "$DEBI_KERNEL_PARAMS" ]; then
|
|
|
echo "d-i debian-installer/add-kernel-opts string$DEBI_KERNEL_PARAMS" | $save_preseed
|
|
echo "d-i debian-installer/add-kernel-opts string$DEBI_KERNEL_PARAMS" | $save_preseed
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+if [ "$DEBI_USERNAME" = root ]; then
|
|
|
|
|
+ $save_preseed << 'EOF'
|
|
|
|
|
+d-i preseed/late_command string \
|
|
|
|
|
+ in-target sed -ri 's/^#?PermitRootLogin .+/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
|
|
|
+EOF
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
$save_preseed << EOF
|
|
$save_preseed << EOF
|
|
|
|
|
|
|
|
# Finishing up the installation
|
|
# Finishing up the installation
|