# Force debconf priority to critical.
debconf debconf/priority select critical
# Override default frontend to Noninteractive
debconf debconf/frontend select Noninteractive

### Localization
d-i debconf/language string en
d-i debian-installer/locale string nl_NL.UTF-8
d-i debian-installer/language string nl
d-i debian-installer/country string NL
d-i debian-installer/locale string nl_NL.UTF-8
d-i debian-installer/splash boolean false
#d-i localechooser/supported-locales en_US.UTF-8, nl_NL.UTF-8

# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us

### Network configuration
d-i netcfg/wireless_wep string

# Set network interface or 'auto'
d-i netcfg/choose_interface select auto

# Any hostname and domain names assigned from dhcp take precedence over
# values set here.
#d-i netcfg/get_hostname string ubuntu
#d-i netcfg/get_domain string internal

### Clock and time zone setup
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Amsterdam
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 1.nl.pool.ntp.org

### Partitions
## Controlling how partitions are mounted
# The default is to mount by UUID, but you can also choose "traditional" to
# use traditional device names, or "label" to try filesystem labels before
# falling back to UUIDs.
d-i partman/mount_style select label

### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.nl.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

### Base system installation
d-i base-installer/install-recommends boolean true

### Account setup
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false

### Apt setup
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true

### Package selection
tasksel tasksel/first multiselect standard

# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select none
d-i pkgsel/ignore-incomplete-language-support boolean true

# Individual additional packages to install
d-i pkgsel/include string openssh-server xorg chromium openbox lightdm nedit locales spacefm sudo gmessage unattended-upgrades plymouth plymouth-themes

#d-i pkgsel/updatedb boolean false

### Boot loader installation
#d-i grub-installer/only_debian boolean true
#d-i grub-installer/with_other_os boolean true
# Manualy select drive for bootloader - workaround for USB hijacking /dev/sda
d-i grub-installer/only_debian boolean false
d-i grub-installer/with_other_os boolean false

### Finishing up the installation
d-i finish-install/reboot_in_progress note
d-i cdrom-detect/eject boolean true

### Preseeding other packages
#   debconf-get-selections >> file
popularity-contest popularity-contest/participate boolean false

### GRUB
grub-pc grub-pc/hidden_timeout  boolean true
grub-pc grub-pc/timeout string  1



#### Advanced options
d-i preseed/late_command string \
in-target wget -O /root/install-script.sh https://git.ictmaatwerk.com/bprieshof/Kiosk/raw/branch/master/install-script.sh ; \
in-target bash /root/install-script.sh generic ; \
in-target rm -f /root/install-script.sh