#set keyboard to de and locales to de_DE.UTF-8 d-i debian-installer/locale string de_DE.UTF-8 d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string de d-i netcfg/choose_interface select auto #network configuration if no dhcp present d-i netcfg/dhcp_failed note d-i netcfg/dhcp_options select Configure network manually #Static network configuration. d-i netcfg/get_nameservers string 10.0.0.254 d-i netcfg/get_ipaddress string 10.0.0.5 d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_gateway string 10.0.0.5 d-i netcfg/confirm_static boolean true #apt proxy d-i mirror/country string enter information manually d-i mirror/protocol string http d-i mirror/http/hostname string 10.0.0.9:9999 d-i mirror/http/directory string /ubuntu d-i mirror/http/proxy string d-i apt-setup/security_host string 10.0.0.9:9999 d-i apt-setup/security_path string /ubuntu-security #time settings d-i clock-setup/utc boolean true d-i time/zone string Europe/Berlin d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string time.fu-berlin.de #partitioning, here we will have only / and swap d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular #d-i partman-auto/purge_lvm_from_device boolean true d-i partman-auto/expert_recipe string \ root-var :: \ 9000 10000 10000 ext3 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ / } \ . \ 10000 50 100000000 ext3 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /var } \ . \ 64 512 300% linux-swap \ method{ swap } format{ } \ . d-i partman-auto/choose_recipe select root-var d-i partman/confirm_write_new_label boolean true d-i partman/confirm boolean true #d-i partman-auto/method string regular #d-i partman-auto/choose_recipe select atomic d-i partman/choose_partition select Finish partitioning and write changes to disk #disable multiverse and universe d-i apt-setup/multiverse boolean false d-i apt-setup/universe boolean false d-i passwd/root-login boolean true d-i passwd/make-user boolean true d-i passwd/root-password password foobar d-i passwd/root-password-again password foobar #install openssh-server d-i pkgsel/include string openssh-server vim #install grub d-i grub-installer/only_debian boolean true #d-i grub-installer/with_other_os boolean true #reboot system if installation is ready d-i finish-install/reboot_in_progress note #execute this script after the end of the installation #i only install all updates there d-i preseed/late_command string \ cd /target; \ wget http://10.0.0.9/post-install; \ chmod +x ./post-install; \ chroot ./ ./post-install; \ rm -f ./post-install