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
# 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
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
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}/"