Sufficient preseed.cfg for Debian Installer to be Ready for SSH Connection

Last modified by Leon Poon on 2018/12/24 17:51

Based off: https://wiki.debian.org/DebianInstaller/NetworkConsole

d-i debian-installer/language string en
d-i debian-installer/country string SG
d-i localechooser/supported-locales multiselect en_US.UTF-8, en_US
d-i keyboard-configuration/xkb-keymap select us
d-i anna/choose_modules string network-console
d-i preseed/early_command string anna-install network-console
d-i network-console/password password r00tme
d-i network-console/password-again password r00tme
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

You can find full descriptions here: https://www.debian.org/releases/jessie/example-preseed.txt

Please use your own secret for the password.

Unpack initrd.gz, add /preseed.cfg and repack:

mkdir initrd
cd initrd
zcat ../initrd.gz | cpio -idmv
cat > preseed.cfg
find . | cpio --quiet  -o -H newc | gzip > ../initrd-new.gz

Supply these args to netboot kernel:

auto=true file=/preseed.cfg