#Contents of the preconfiguration file (for ubuntu 12.04 and 14.04) # Localization and language d-i debian-installer/language string en d-i debian-installer/country string US d-i debian-installer/locale string en_US d-i localechooser/supported-locales en_US # Keyboard d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string us d-i keymap select us d-i keyboard-configuration/xkb-keymap select us # Network d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string ubuntu d-i netcfg/get_domain string cesnet.cz # Mirror d-i mirror/country string manual d-i mirror/http/hostname string archive.ubuntu.com d-i mirror/http/directory string /ubuntu/ d-i mirror/http/proxy string # Clock and time zone d-i clock-setup/utc boolean true d-i time/zone string Europe/Prague d-i clock-setup/ntp boolean true # Account #d-i passwd/user-fullname string temporary_user #d-i passwd/username string temporary_user #d-i passwd/user-password password <%= @data[:password] %> #d-i passwd/user-password-again password <%= @data[:password] %> #d-i user-setup/encrypt-home boolean false #d-i user-setup/allow-password-weak boolean true d-i passwd/make-user boolean false # Root password d-i passwd/root-login boolean true d-i passwd/root-password password <%= @data[:password] %> d-i passwd/root-password-again password <%= @data[:password] %> # Partition d-i partman-md/device_remove_md boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-auto/choose_recipe select boot-root d-i partman-auto/init_automatically_partition select biggest_free d-i partman-auto/method string regular d-i partman-auto/expert_recipe string \ boot-root :: \ 500 10000 1000000000 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm_nooverwrite boolean true d-i partman/confirm boolean true d-i partman-basicfilesystems/no_swap boolean false d-i partman-basicfilesystems/no_swap seen true d-i partman/mount_style select uuid # Grub d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean false # Base system installation #d-i base-installer/install-recommends boolean false d-i base-installer/kernel/image string linux-generic # Package selection tasksel tasksel/first multiselect none d-i pkgsel/update-policy select none d-i pkgsel/include string openssh-server build-essential d-i pkgsel/upgrade select none # SSH hack to allow root login d-i preseed/late_command string in-target sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/" /etc/ssh/sshd_config # Finishing up the installation d-i finish-install/reboot_in_progress note