Skip to content

Instantly share code, notes, and snippets.

@fl64
Created November 16, 2018 21:57
Show Gist options
  • Save fl64/4aaabadeae0d75c2b94e06308f5705ab to your computer and use it in GitHub Desktop.
Save fl64/4aaabadeae0d75c2b94e06308f5705ab to your computer and use it in GitHub Desktop.
Linux xenial preseed
### user settings
d-i passwd/username string bot-install
d-i passwd/user-fullname string bot-install
d-i passwd/user-password password 12qw!@QW
d-i passwd/user-password-again password 12qw!@QW
d-i user-setup/allow-password-weak boolean true
### regional setting
d-i debian-installer/language string en_US:en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US
d-i debian-installer/quiet boolean true
d-i debian-installer/splash boolean false
d-i localechooser/supported-locales multiselect en_US.UTF-8
d-i pkgsel/language-packs multiselect en
d-i pkgsel/install-language-support boolean false
### keyboard selection
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string intl
d-i keyboard-configuration/xkb-keymap select us(intl)
d-i keyboard-configuration/xkb-keymap select us
d-i debconf/language string en_US:en
### clock and timezone settings
d-i time/zone string Europe/Moscow
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
### partitioning
d-i partman/filter_mounted boolean false
d-i partman/unmount_active boolean false
d-i partman/alignment string cylinder
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-md/confirm_nooverwrite 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
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select boopat-root
d-i partman-auto/expert_recipe string \
boot-root :: \
268 268 268 ext4 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /boot } \
options/noatime{ noatime } \
. \
2146 2146 100% linux-swap \
method{ swap } \
format{ } \
. \
4292 4292 -1 ext4 \
method{ lvm } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
options/noatime{ noatime } \
.
d-i partman-basicmethods/method_only boolean false
d-i partman/choose_partition select finish
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
### bootloader
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string default
### Kernel settings
d-i debian-installer/add-kernel-opts string vga=788 nomodeset
### Verbose output and no boot splash screen.
d-i debian-installer/quiet boolean false
d-i debian-installer/splash boolean false
### additional packages
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server open-vm-tools cloud-initramfs-growroot
### other
d-i mirror/http/proxy string
d-i user-setup/encrypt-home boolean false
d-i pkgsel/update-policy select none
### finish installation
d-i finish-install/keep-consoles boolean false
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string in-target sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT=""/g' /etc/default/grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment