@ -63,14 +63,14 @@ mirror_protocol=http
mirror_host = deb.debian.org
mirror_host = deb.debian.org
mirror_directory = /debian
mirror_directory = /debian
security_repository = http://security.debian.org/debian-security
security_repository = http://security.debian.org/debian-security
skip_account_setup = fals e
account_setup = tru e
username = debian
username = debian
password =
password =
authorized_keys_url =
authorized_keys_url =
sudo_with_password = false
sudo_with_password = false
timezone = UTC
timezone = UTC
ntp = 0.debian.pool.ntp.org
ntp = 0.debian.pool.ntp.org
skip_partitioning = fals e
disk_partitioning = tru e
disk =
disk =
force_gpt = true
force_gpt = true
efi =
efi =
@ -150,8 +150,8 @@ while [ $# -gt 0 ]; do
security_repository = $2
security_repository = $2
shift
shift
; ;
; ;
--skip -account-setup)
--no-user| --no -account-setup)
skip_account_setup = tru e
account_setup = fals e
; ;
; ;
--user| --username)
--user| --username)
username = $2
username = $2
@ -176,8 +176,8 @@ while [ $# -gt 0 ]; do
ntp = $2
ntp = $2
shift
shift
; ;
; ;
--skip -partitioning)
--no-part| --no-disk -partitioning)
skip_partitioning = tru e
disk_partitioning = fals e
; ;
; ;
--disk)
--disk)
disk = $2
disk = $2
@ -260,14 +260,14 @@ done
installer = " debian- $suite "
installer = " debian- $suite "
installer_directory = " /boot/ $installer "
installer_directory = " /boot/ $installer "
if [ " $skip_ account_setup " = fals e ] ; then
if [ " $account_setup " = tru e ] ; then
prompt_password
prompt_password
elif [ " $network_console " = true ] && [ -z " $authorized_keys_url " ] ; then
elif [ " $network_console " = true ] && [ -z " $authorized_keys_url " ] ; then
prompt_password "Choose a password for the installer user of the SSH network console: "
prompt_password "Choose a password for the installer user of the SSH network console: "
fi
fi
save_preseed = 'cat'
save_preseed = 'cat'
if [ " $dry_run " != tru e ] ; then
if [ " $dry_run " = fals e ] ; then
[ " $( id -u) " -ne 0 ] && err 'root privilege is required'
[ " $( id -u) " -ne 0 ] && err 'root privilege is required'
rm -rf " $installer_directory "
rm -rf " $installer_directory "
mkdir -p " $installer_directory /initrd "
mkdir -p " $installer_directory /initrd "
@ -351,7 +351,7 @@ d-i mirror/suite string $suite
d-i mirror/udeb/suite string $suite
d-i mirror/udeb/suite string $suite
EOF
EOF
if [ " $skip_ account_setup " ! = true ] ; then
if [ " $account_setup " = true ] ; then
password_hash =
password_hash =
if command_exists mkpasswd; then
if command_exists mkpasswd; then
password_hash = $( mkpasswd -m sha-512 " $password " )
password_hash = $( mkpasswd -m sha-512 " $password " )
@ -431,7 +431,7 @@ d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string $ntp
d-i clock-setup/ntp-server string $ntp
EOF
EOF
if [ " $skip _partitioning " ! = true ] ; then
if [ " $di sk_partitioning " = true ] ; then
$save_preseed << 'EOF'
$save_preseed << 'EOF'
# Partitioning
# Partitioning
@ -538,7 +538,7 @@ $save_preseed << 'EOF'
EOF
EOF
[ " $hold " != tru e ] && echo 'd-i finish-install/reboot_in_progress note' | $save_preseed
[ " $hold " = fals e ] && echo 'd-i finish-install/reboot_in_progress note' | $save_preseed
[ " $bbr " = true ] && late_command '{ echo "net.core.default_qdisc=fq"; echo "net.ipv4.tcp_congestion_control=bbr"; } > /etc/sysctl.d/bbr.conf'
[ " $bbr " = true ] && late_command '{ echo "net.core.default_qdisc=fq"; echo "net.ipv4.tcp_congestion_control=bbr"; } > /etc/sysctl.d/bbr.conf'
@ -547,7 +547,7 @@ EOF
[ " $power_off " = true ] && echo 'd-i debian-installer/exit/poweroff boolean true' | $save_preseed
[ " $power_off " = true ] && echo 'd-i debian-installer/exit/poweroff boolean true' | $save_preseed
save_grub_cfg = 'cat'
save_grub_cfg = 'cat'
if [ " $dry_run " != tru e ] ; then
if [ " $dry_run " = fals e ] ; then
if [ -z " $architecture " ] ; then
if [ -z " $architecture " ] ; then
architecture = amd64
architecture = amd64
command_exists dpkg && architecture = $( dpkg --print-architecture)
command_exists dpkg && architecture = $( dpkg --print-architecture)