d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us

# Network Setup
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string joeyclown.skyscapecs.net
d-i netcfg/get_domain string skyscapecs.net
d-i netcfg/no_default_route boolean true

# This is introduced in Trusty.
d-i live-installer/net-image string http://10.255.10.1:8080/svc/repo/gerrard_ubuntu14/install/filesystem.squashfs
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string 10.255.10.1:8080
d-i mirror/http/directory string /svc/repo/gerrard_ubuntu14/
d-i mirror/udeb/components multiselect main

d-i clock-setup/utc boolean true
d-i time/zone string UTC
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ubuntu.com

# Partitioning 
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman/default_filesystem string ext4
d-i partman-auto/init_automatically_partition select biggest_free
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite 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
d-i partman-md/confirm boolean true

d-i passwd/root-login boolean true
d-i passwd/make-user boolean true
d-i passwd/root-password password 12345
d-i passwd/root-password-again password 12345
d-i passwd/user-fullname string Ubuntu User
d-i passwd/username string ubuntu
d-i passwd/user-password password insecure
d-i passwd/user-password-again password insecure
d-i user-setup/allow-password-weak boolean true
d-i apt-setup/restricted boolean false
d-i apt-setup/universe boolean false
d-i apt-setup/multiverse boolean false
d-i apt-setup/backports boolean false
d-i apt-setup/trusty-updates boolean false
d-i apt-setup/updates boolean false
d-i pkgsel/include string curl openssh-server
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note
# Uncomment this for `nomodeset`.
# d-i debian-installer/add-kernel-opts string nomodeset

# Our callbacks
d-i preseed/early_command string wget http://10.255.10.1:8080/svc/log/35?msg=preseed+start&severity=info
d-i preseed/late_command string  wget http://10.255.10.1:8080/svc/log/35?msg=preseed+end&severity=info; \
wget http://10.255.10.1:8080/svc/file/35/os_boot -O /target/usr/local/bin/razor_postinstall.sh;  \
sed -i '/exit 0/d' /target/etc/rc.local;  \
echo bash /usr/local/bin/razor_postinstall.sh >> /target/etc/rc.local; \
echo exit 0 >> /target/etc/rc.local;  \
chmod +x /target/usr/local/bin/razor_postinstall.sh; \
wget http://10.255.10.1:8080/svc/stage-done/35?name=preseed
