Wiki source code of Sufficient preseed.cfg for Debian Installer to be Ready for SSH Connection
Last modified by Leon Poon on 2018/12/24 17:51
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Based off: [[https:~~/~~/wiki.debian.org/DebianInstaller/NetworkConsole>>url:https://wiki.debian.org/DebianInstaller/NetworkConsole]] | ||
| 2 | |||
| 3 | {{code}} | ||
| 4 | d-i debian-installer/language string en | ||
| 5 | d-i debian-installer/country string SG | ||
| 6 | d-i localechooser/supported-locales multiselect en_US.UTF-8, en_US | ||
| 7 | d-i keyboard-configuration/xkb-keymap select us | ||
| 8 | d-i anna/choose_modules string network-console | ||
| 9 | d-i preseed/early_command string anna-install network-console | ||
| 10 | d-i network-console/password password r00tme | ||
| 11 | d-i network-console/password-again password r00tme | ||
| 12 | d-i netcfg/get_hostname string unassigned-hostname | ||
| 13 | d-i netcfg/get_domain string unassigned-domain | ||
| 14 | d-i mirror/country string manual | ||
| 15 | d-i mirror/http/hostname string http.us.debian.org | ||
| 16 | d-i mirror/http/directory string /debian | ||
| 17 | d-i mirror/http/proxy string | ||
| 18 | {{/code}} | ||
| 19 | |||
| 20 | You can find full descriptions here: [[https:~~/~~/www.debian.org/releases/jessie/example-preseed.txt>>url:https://www.debian.org/releases/jessie/example-preseed.txt]] | ||
| 21 | |||
| 22 | Please use your own secret for the password. | ||
| 23 | |||
| 24 | Unpack initrd.gz, add /preseed.cfg and repack: | ||
| 25 | |||
| 26 | {{code}} | ||
| 27 | mkdir initrd | ||
| 28 | cd initrd | ||
| 29 | zcat ../initrd.gz | cpio -idmv | ||
| 30 | cat > preseed.cfg | ||
| 31 | find . | cpio --quiet -o -H newc | gzip > ../initrd-new.gz | ||
| 32 | {{/code}} | ||
| 33 | |||
| 34 | Supply these args to [[netboot>>url:http://http.us.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/]] kernel: | ||
| 35 | |||
| 36 | {{code}} | ||
| 37 | auto=true file=/preseed.cfg | ||
| 38 | {{/code}} |