#_preseed_V1
-#d-i debian-installer/load-cdrom/title
+#d-i anna/choose-modules multiselect ,
-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/use_autoconfig true
-#d-i netcfg/wireless_essid kadatheron
+d-i netcfg/choose_interface select auto
+#d-i netcfg/wireless_essid string kadatheron
+d-i netcfg/wireless_security_type select wpa
+d-i netcfg/use_autoconfig boolean true
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
user-setup-udeb passwd/make-user boolean false
#d-i partman-auto/method string crypto
-#d-i partman-auto/select_disk /var/lib/partman/devices/=dev=nvme0n1
+#d-i partman-auto/select_disk string /var/lib/partman/devices/=dev=nvme0n1
d-i partman-auto-lvm/guided_size string max
-#d-i partman-auto-lvm/new_vg_name plomvg
-#d-i partman-lvm/confirm true
+#d-i partman-auto-lvm/new_vg_name string plomvg
#d-i partman-auto/choose_recipe select atomic
d-i partman-auto-crypto/erase_disks boolean false
# d-i partman-lvm/confirm boolean true
#d-i pkgsel/run_tasksel boolean false
-#d-i apt-setup/use-mirror true
+#d-i apt-setup/use-mirror boolean true
d-i mirror/protocol string http
-#d-i mirror/http/proxy
+d-i mirror/http/proxy string ""
#d-i mirror/http/hostname string http.us.debian.org
d-i apt-setup/enable-source-repositories true
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 apt-setup/services-select multiselect security, updates
d-i grub-installer/force-efi-extra-removable false
d-i grub-installer/update-nvram true
cd $(dirname "$0")
. lib/constants_repopaths # PATH_CONF
. lib/constants_server # PATH_REL_SSH, PATH_SSH
+. lib/constants_user # USERNAME
. lib/copy_dirtree
. lib/determine_ip
. lib/expect_min_n_args
HOSTNAME="$1"
FQDN="$2"
-USERNAME=plom
-PATH_USER_HOME="/home/${USERNAME}"
PATH_REL_ETC=etc
PATH_CONF_ETC="${PATH_CONF}/${PATH_REL_ETC}"
PATH_USER_SSH="${PATH_USER_HOME}/${PATH_REL_SSH}"
ln -sf /usr/share/zoneinfo/Europe/Berlin "${PATH_ETC}/localtime"
ntpdate-debian
-setup_users plom "${MIN_TAGS}"
+setup_users "${MIN_TAGS}" ""
mkdir -p "${PATH_USER_SSH}"
mv "${PATH_SSH}/authorized_keys" "${PATH_USER_SSH}/"