#
# Canonical, Ltd.
# Frank Heimes
# ftp://server/preseed/preseed.cfg
#

d-i debconf/priority string critical
d-i auto-install/enable boolean true

# use -proposed udebs
d-i apt-setup/proposed boolean true

d-i pkgsel/update-policy select none

#
# Localization
#
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8

# activate qeth
d-i s390-netdevice/choose_networktype string qeth
d-i s390-netdevice/qeth/choose string 0.0.0600-0.0.0601-0.0.0602
d-i s390-netdevice/qeth/layer2 boolean true
d-i s390-netdevice/qeth/port string 0

# use static network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true

d-i netcfg/get_ipaddress string 10.245.236.12
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 10.245.236.1
d-i netcfg/get_nameservers string 10.245.236.1
d-i netcfg/confirm_static boolean true
d-i netcfg/hostname string ZLIN12

# provide network-console password
d-i network-console/password password pass4install
d-i network-console/password-again password pass4install
d-i network-console/start note

# user setup
d-i passwd/user-fullname string ubuntu
d-i passwd/username string ubuntu
d-i passwd/user-password-crypted password $6czoUlkH40NHPJs5.5wdF.kIJF&33VdH0kNMTF$$$QFT6DumGdp5PNjlnnxowin&$%6tcztRC.

d-i user-setup/encrypt-home boolean false

# enable shadow passwords
d-i passwd/shadow boolean true

# HW clock
d-i clock-setup/utc boolean true
# time zone
d-i time/zone string Europe/Berlin

# The Debian release to install
d-i mirror/suite string xenial

# do not enable live installer, use normal instead
d-i live-installer/enable boolean false

# activate DASD, dasdfmt if needed
d-i s390-dasd/dasd string 0.0.0200,0.0.0300,0.0.0400

# DASD configuration
d-i s390-dasd/auto-format boolean true
d-i s390-dasd/force-format boolean true

# zfcp configuration
## d-i s390-zfcp/zfcp string 
## 0.0.2b12:0x400807704798b4a4:0x201480c800000000

# optional lines to overwrite old RAIDs and LVMs ....
# d-i partman-md/device_remove_md 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

# auto-partition, all files in one partition
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
d-i partman/choose_partition select finish
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true

# Software selection
d-i tasksel/first multiselect standard system utilities, OpenSSH server, Basic Ubuntu server

# after installation, install some packages - use only one line!
d-i preseed/late_command string in-target sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config; apt-install xfsprogs initramfs-tools screen ftp rsync strace vim build-essential multipath-tools lsscsi lvm2 scsitools

# reboot at the end
d-i finish-install/reboot_in_progress note

