#_preseed_V1 # Preseeding only locale sets language, country and locale. # For network booting, this comes too late; one needs to put those into command line, # and the language there should be "en" or it will ask about it on the terminal d-i debian-installer/language string ru d-i debian-installer/country string AM d-i debian-installer/locale string ru_RU.UTF-8 d-i localechooser/supported-locales multiselect ru_RU.UTF-8 # Keyboard selection. d-i console-setup/ask_detect boolean false d-i keyboard-configuration/xkb-keymap select ru d-i keyboard-configuration/optionscode string grp:caps_toggle,lv3:ralt_switch,compose:rctrl,grp_led:scroll d-i keyboard-configuration/layoutcode string us,ru d-i keyboard-configuration/variantcode string , d-i keyboard-configuration/toggle select Caps Lock d-i keyboard-configuration/altgr select Right Alt (AltGr) d-i keyboard-configuration/compose select Right Control ### Clock and time zone setup d-i clock-setup/utc boolean true d-i time/zone string Asia/Yerevan ### Mirror settings # If you select ftp, the mirror/country string does not need to be set. d-i mirror/country string AM d-i mirror/http/directory string /debian/ d-i mirror/http/hostname string deb.debian.org d-i mirror/https/hostname string deb.debian.org d-i mirror/http/mirror select deb.debian.org d-i mirror/https/mirror select deb.debian.org #d-i mirror/http/proxy string http://gw:8118/ #d-i mirror/https/proxy string http://gw:8118/ ### Partitioning d-i partman-auto/method string regular d-i partman-auto/disk string /dev/sda d-i partman-auto/expert_recipe string system-disk :: \ 2047 0 -1 ext4 \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ # empty line above is REQUIRED due to continuation # This makes partman automatically partition without confirmation. 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 # Skip question about not having swap partition partman-basicfilesystems partman-basicfilesystems/no_swap boolean false ### Account setup # Set root password encrypted using a crypt(3) hash #d-i passwd/root-password-crypted password $6$Ljketui4$hSnALWF8hKnbaWZpkj6xtx7PzWdMdgTJL7cdvfrj5byHq1BVp0KBxQbkKm5O9onjdwyKPmz3W22F.Q # Set root with no password; the login will be possible with SSH key d-i passwd/root-password-crypted password * # Don't disable a root login d-i passwd/root-login boolean true # Skip a user creation d-i passwd/make-user boolean false # Or make user with known passord #d-i passwd/user-uid string 1000 #d-i passwd/user-fullname string ${var.ssh_fullname} #d-i passwd/username string ${var.ssh_username} #d-i passwd/user-password password ${var.ssh_password} #d-i passwd/user-password-again password ${var.ssh_password} #d-i user-setup/allow-password-weak boolean true #d-i user-setup/encrypt-home boolean false ### Package selection d-i hw-detect/load_media boolean false apt-cdrom-setup apt-setup/cdrom/set-first boolean false #tasksel tasksel/first standard tasksel tasksel/first multiselect standard, ssh-server #d-i pkgsel/include string openssh-server qemu-guest-agent d-i pkgsel/include string openssh-server sudo mc d-i pkgsel/install-language-support boolean false # disable automatic package updates d-i pkgsel/update-policy select none d-i pkgsel/upgrade select full-upgrade # disable popularity contest d-i popularity-contest/participate boolean false # choose cloud kernel and minimum initramfs bootstrap-base base-installer/initramfs-tools/driver-policy select dep bootstrap-base base-installer/kernel/linux/initramfs-tools/driver-policy string dep bootstrap-base base-installer/kernel/image select linux-image-cloud-amd64 ### Bootloader # This is fairly safe to set, it makes grub install automatically to the MBR # if no other operating system is detected on the machine. d-i grub-installer/only_debian boolean true # This one makes grub-installer install to the MBR if it also finds some other # OS, which is less safe as it might not be able to boot that other OS. d-i grub-installer/with_other_os boolean true # Avoid a question! grub-installer grub-installer/bootdev string /dev/sda # Avoid that last message about the install being complete, just reboot when finished d-i finish-install/reboot_in_progress note ### Add SSH key for root d-i preseed/late_command string \ mkdir -p -m 700 /target/root/.ssh; \ echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAKQCaZovi1a1UKy6Az3JSFP/3P4tP3ReknM//5eoOvk merlin@uc-s4m75657" > /target/root/.ssh/authorized_keys; \ in-target chown --recursive root:root /root/.ssh; \ in-target chmod 0600 /root/.ssh/authorized_keys;