# Locale
d-i debian-installer/locale		string	C
d-i debian-installer/language		string	C
d-i debian-installer/country		string	CZ
# country and keyboard settings are automatic. Keep them ...
# ... for wheezy and newer:
d-i keyboard-configuration/xkb-keymap	seen	true
# ... for squeeze and older:
d-i console-keymaps-at/keymap		seen	true

# Network

d-i netcfg/disable_dhcp			boolean	true
d-i netcfg/disable_autoconfig		boolean	true

d-i netcfg/choose_interface		select	auto

d-i netcfg/wireless_wep			string

d-i hw-detect/load_firmware		boolean	true

# Mirror settings
d-i mirror/country			string manual
d-i mirror/http/hostname		string ftp.cz.debian.org
d-i mirror/http/directory		string /debian
d-i mirror/http/proxy			string
d-i mirror/suite			string stable


# Time settings
d-i clock-setup/utc			boolean	true
d-i time/zone				string	Europe/Prague

# NTP
d-i clock-setup/ntp			boolean	true
d-i clock-setup/ntp-server		string	ntp.muni.cz

# User settings
# Heslo se nesnazte rozlustit, nahodna zmet znaku
d-i passwd/root-password-crypted	password $6$2h.xwUwp7Z3a7$34jeXiZwoqRFNP6m9iyr0x2rRGa5hOdoY7Lj4RVdSX2/4DJZFVRcTrTP2MTlczRQIBDRdoqOzOGYBQuBOdYP10
user-setup-udeb passwd/root-login	boolean	true

d-i passwd passwd/make-user		boolean	false
user-setup-udeb passwd/make-user	boolean	false

d-i partman/alignment			select	optimal
d-i partman-md/device_remove_md		boolean	true
d-i partman-md/confirm			boolean	true
d-i partman-md/confirm_nooverwrite 	boolean	true
d-i partman-lvm/device_remove_lvm	boolean	true
d-i partman-lvm/confirm			boolean	true
d-i partman-lvm/confirm_nooverwrite 	boolean	true

d-i partman-auto/method 		string raid
d-i partman-auto/disk			string /dev/vda /dev/vdb

d-i partman-auto/expert_recipe string   \
    multiraid ::                        \
        128   128     128     raid $primary{ }    method{ raid } . \
        2000  2500    3000    raid $primary{ }    method{ raid } . \
        1000  1200    1500    raid                method{ raid } . \
        250   500     500     raid                method{ raid } . \
        1     12000   20000   raid                method{ raid } .


d-i partman-auto-raid/recipe string \
    1 2 0 ext2 /boot                /dev/vda1#/dev/vdb1 . \
    1 2 0 ext4 /                    /dev/vda2#/dev/vdb2 . \
    1 2 0 swap -                    /dev/vda5#/dev/vdb5 . \
    1 2 0 ext4 /var/cache/openafs   /dev/vda6#/dev/vdb6 . \
    1 2 0 ext4 /scratch.ssd         /dev/vda7#/dev/vdb7 .


d-i partman-md/confirm			boolean	true
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



# Kernel
d-i base-installer/kernel/image		string	linux-image

# APT
d-i apt-setup/non-free			boolean true
d-i apt-setup/contrib			boolean true
d-i apt-setup/services-select		multiselect	security, updates
d-i apt-setup/security_host		string	security.debian.org

# Install minimal task set (see tasksel --task-packages minimal)
tasksel tasksel/first			multiselect	minimal, ssh-server
d-i pkgsel/include			string	lsb-release, openssh-server, python, vim
d-i pkgsel/upgrade			select	full-upgrade
d-i pkgsel/update-policy		select	unattended-upgrades

popularity-contest popularity-contest/participate boolean false

# Boot loader settings
d-i grub-installer/only_debian		boolean	true
d-i grub-installer/with_other_os	boolean	true
d-i grub-installer/bootdev		string	default

# Finish...
d-i preseed/late_command		string	\
	in-target apt -y purge nano vim-tiny;


d-i finish-install/reboot_in_progress	note
