fix: prefer wired interface in preseed to avoid WiFi passphrase prompt

This commit is contained in:
2026-05-24 11:36:09 +00:00
parent 19b02f91e9
commit b73b8fab65
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
0.2.2
0.2.3
+6 -1
View File
@@ -9,6 +9,9 @@ d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
# ── Network ────────────────────────────────────────────────────────
# Auto, but early_command will pin to the first wired (eth/en) interface
# if one exists — prevents installer from defaulting to WiFi and asking
# for a WPA passphrase. Ethernet must be plugged in during install.
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string kiosk
d-i netcfg/get_domain string local
@@ -36,7 +39,9 @@ d-i passwd/root-password-again password kiosk
d-i preseed/early_command string \
DISK=$(ls /sys/block/ | grep -Ev '^(loop|sr|fd|ram)' | head -1); \
debconf-set partman-auto/disk "/dev/$DISK"; \
debconf-set grub-installer/bootdev "/dev/$DISK"
debconf-set grub-installer/bootdev "/dev/$DISK"; \
ETH=$(ls /sys/class/net/ | grep -E '^(eth|en)' | head -1); \
[ -n "$ETH" ] && debconf-set netcfg/choose_interface "$ETH"
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic