+# only ask important questions
+#d-i debconf/priority string critical
+
+
+# Locale & Timezone
+
+d-i clock-setup/ntp boolean false
+d-i time/zone string Europe/Paris
+# d-i debian-installer/language string en
+# d-i debian-installer/country string FR
+# d-i debian-installer/locale string en_US.UTF-8
+# note : although these could be preseeded in the default preseeds file (which is loaded before the others), I chose not to, so the install can be in any locale. The clock is preseeded, since else we have to wait for the NTP server connection to time out.
+
+# Network
+
+d-i netcfg/disable_autoconfig boolean true
+d-i netcfg/get_hostname string trc00
+d-i netcfg/get_domain string thalesgroup.com
+# it seems domain preseeding does not work (there are bug reports on the internet..). In theory we're not using it though.
+d-i netcfg/get_nameservers string
+d-i netcfg/get_ipaddress string 10.133.28.160
+d-i netcfg/get_netmask string 255.255.255.0
+d-i netcfg/get_gateway string 10.133.28.231
+# no DNS server
+
+# Important note : most if not all of the net config will get replaced anyway as we unpack /master into the drive.
+
+
+# User configuration
+# For these three I sometimes see d-i and sometimes passwd (as first argument). It seems to work like this.
+passwd passwd/root-password password thales
+passwd passwd/root-password-again password thales
+
+passwd passwd/user-fullname string trc6500
+passwd passwd/username string trc6500
+passwd passwd/user-password password thales
+passwd passwd/user-password-again password thales
+
+
+# Partitioning
+# three partitions :
+# - sda1 / 20GB ext4
+# - sda2 (none) 1G swap
+# - sda3 /var/media/backup (remaining) ext4
+# Note that it will fail if you have less than 31 gigabytes it can use, obviously.
+
+d-i partman-auto/disk string /dev/sda
+d-i partman-auto/method string regular
+
+
+d-i partman-auto/expert_recipe string \
+ boot-root :: \
+ 20000 20000 20000 ext4 \
+ $primary{ } $bootable{ } \
+ method{ format } format{ } \
+ use_filesystem{ } filesystem{ ext4 } \
+ mountpoint{ / } \
+ . \
+ 1024 2048 1024 linux-swap \
+ $primary{ } method{ swap } format{ } \
+ . \
+ 512 10000 -1 ext4 \
+ $primary{ } method{ format } format{ } \
+ use_filesystem{ } filesystem{ ext4 } \
+ mountpoint{ /var/media/backup } \
+ .
+
+d-i partman-partitioning/confirm_write_new_label boolean true
+d-i partman/choose_partition select finish
+d-i partman/confirm boolean true
+d-i partman/confirm_nooverwrite boolean true
+
+
+# GRUB configuration
+grub grub-pc/install_devices multiselect /dev/sda
+# unlike what the internet would tell you, sending this command to d-i doesn't work
+
+# iptables configuration
+
+iptables-persistent iptables-persistent/autosave_v6 boolean false
+iptables-persistent iptables-persistent/autosave_v4 boolean false
+
+# APT configuration
+d-i apt-setup/use_mirror boolean false
+popularity-contest popularity-contest/participate boolean false