home · contact · privacy
Improve pre-seeding script. master
authorChristian Heller <c.heller@plomlompom.de>
Fri, 28 Mar 2025 00:37:31 +0000 (01:37 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 28 Mar 2025 00:37:31 +0000 (01:37 +0100)
bookworm/preseed.cfg
bookworm/scripts/update_preseed.sh

index 3a96114190f837493b175268fddbe9f6cd8d99ab..4b7e4f3d8d3467fe50ea560468a0fc45e9e888c0 100644 (file)
@@ -5,8 +5,11 @@ user-setup-udeb        passwd/make-user boolean false
 
 d-i netcfg/choose_interface select auto
 d-i netcfg/link_wait_timeout string 3
+d-i netcfg/wireless_security_type wpa
 #d-i netcfg/wireless_wep string
 #d-i netcfg/disable_autoconfig boolean false
+d-i netcfg/use_autoconfig true
+d-i netcfg/wireless_essid kadatheron
 d-i netcfg/get_hostname string unassigned-hostname
 d-i netcfg/get_domain string unassigned-domain
 
@@ -17,6 +20,7 @@ d-i partman-auto-crypto/erase_disks boolean false
 # d-i partman-lvm/confirm boolean true
 
 d-i base-installer/kernel/image string linux-image-amd64
+d-i base-installer/initramfs-tools/driver-policy most
 
 # d-i pkgsel/run_tasksel boolean false
 
@@ -25,8 +29,11 @@ d-i mirror/protocol string http
 d-i apt-setup/non-free-firmware boolean true
 d-i apt-setup/non-free boolean true
 d-i apt-setup/contrib boolean true
+d-i apt-setup/services-select security, updates
 
 # d-i grub-installer/only_debian boolean true
+grub-installer/enable_os_prober_otheros_no false
+grub-installer/force-efi-extra-removable false
 
 clock-setup clock-setup/utc boolean true
 d-i finish-install/reboot_in_progress note
index 9fb51130af79cc4080d070c1529a8676a46d9e89..b0572bc2b9cb5c622eeb53aa42743cf39fda69d4 100755 (executable)
@@ -10,6 +10,8 @@ abort_if_not_user root
 expect_min_n_args 1 '(e.g. "sdb1")' $@
 PATH_STICK="$(get_mountable_device_path $1)"
 
+echo "Mounting ${PATH_STICK} …"
 mount "${PATH_STICK}" "${PATH_MNT_STICK}"
-trap "umount ${PATH_MNT_STICK}" EXIT INT TERM
+trap "echo 'Unmounting'; umount ${PATH_MNT_STICK}" EXIT INT TERM
+echo "Copying ${PATH_PRESEED_CFG} …"
 cp "${PATH_PRESEED_CFG}" "${PATH_MNT_STICK}/"