mirror of
https://github.com/krislamo/preseed
synced 2024-11-10 05:50:34 +00:00
158 lines
4.9 KiB
Plaintext
158 lines
4.9 KiB
Plaintext
#### QEMU/KVM Virtual Machine Seed for Debian Buster
|
|
|
|
# Only show critical messages
|
|
d-i debconf/priority string critical
|
|
|
|
# Just after preseeding is read, reset automatic network settings
|
|
d-i preseed/early_command string kill-all-dhcp; netcfg
|
|
|
|
### Localization
|
|
|
|
# Preseeding only locale sets language, country and locale.
|
|
d-i debian-installer/locale string en_US
|
|
|
|
# Keyboard selection.
|
|
d-i keyboard-configuration/xkb-keymap select us
|
|
|
|
### Network configuration
|
|
|
|
# Auto select network device.
|
|
d-i netcfg/choose_interface select auto
|
|
|
|
# Configure network manually
|
|
d-i netcfg/disable_autoconfig boolean true
|
|
|
|
# Static network configuration.
|
|
d-i netcfg/get_ipaddress string 192.168.1.15
|
|
d-i netcfg/get_netmask string 255.255.255.0
|
|
d-i netcfg/get_gateway string 192.168.1.1
|
|
d-i netcfg/get_nameservers string 192.168.1.1
|
|
d-i netcfg/confirm_static boolean true
|
|
|
|
# Any hostname and domain names assigned from dhcp take precedence over
|
|
# values set here. However, setting the values still prevents the questions
|
|
# from being shown, even if values come from dhcp.
|
|
d-i netcfg/get_hostname string unassigned-hostname
|
|
d-i netcfg/get_domain string unassigned-domain
|
|
|
|
# Set hostname
|
|
d-i netcfg/hostname string debian-base
|
|
|
|
# Disable that annoying WEP key dialog.
|
|
d-i netcfg/wireless_wep string
|
|
|
|
### Mirror settings
|
|
|
|
apt-mirror-setup apt-setup/use_mirror boolean true
|
|
apt-mirror-setup apt-setup/contrib boolean false
|
|
apt-mirror-setup apt-setup/non-free boolean false
|
|
apt-mirror-setup apt-setup/no_mirror boolean false
|
|
apt-mirror-setup apt-setup/mirror/error select Retry
|
|
|
|
choose-mirror-bin mirror/country string US
|
|
choose-mirror-bin mirror/protocol select http
|
|
choose-mirror-bin mirror/codename string buster
|
|
choose-mirror-bin mirror/suite select stable
|
|
choose-mirror-bin mirror/http/mirror select deb.debian.org
|
|
choose-mirror-bin mirror/http/countries select US
|
|
choose-mirror-bin mirror/http/hostname string deb.debian.org
|
|
choose-mirror-bin mirror/http/proxy string
|
|
choose-mirror-bin mirror/http/directory string /debian/
|
|
choose-mirror-bin mirror/https/countries select US
|
|
|
|
d-i mirror/https/mirror select deb.debian.org
|
|
d-i mirror/https/directory string /debian/
|
|
d-i mirror/https/proxy string
|
|
d-i mirror/https/hostname string mirror
|
|
choose-mirror-bin mirror/ftp/proxy string
|
|
choose-mirror-bin mirror/ftp/hostname string mirror
|
|
choose-mirror-bin mirror/ftp/directory string /debian/
|
|
choose-mirror-bin mirror/noarch error
|
|
choose-mirror-bin mirror/bad error
|
|
choose-mirror-bin mirror/no-default boolean true
|
|
|
|
|
|
### Account setup
|
|
|
|
# Don't set a root password
|
|
d-i passwd/root-login boolean false
|
|
|
|
# Create a normal user account.
|
|
d-i passwd/user-fullname string Kris Lamoureux
|
|
d-i passwd/username string kris
|
|
d-i passwd/user-password-crypted password !
|
|
|
|
### Clock and time zone setup
|
|
|
|
# Controls whether or not the hardware clock is set to UTC.
|
|
d-i clock-setup/utc boolean true
|
|
|
|
# You may set this to any valid setting for $TZ; see the contents of
|
|
# /usr/share/zoneinfo/ for valid values.
|
|
d-i time/zone string US/Eastern
|
|
|
|
# Controls whether to use NTP to set the clock during the install
|
|
d-i clock-setup/ntp boolean true
|
|
|
|
### Partitioning
|
|
|
|
# User LVM to partition
|
|
d-i partman-auto/method string lvm
|
|
|
|
# Use max space for LVM volume group
|
|
d-i partman-auto-lvm/guided_size string max
|
|
|
|
# Remove previous LVM configuration if exists
|
|
d-i partman-lvm/device_remove_lvm boolean true
|
|
|
|
# Remove previous software RAID
|
|
d-i partman-md/device_remove_md boolean true
|
|
|
|
# Confirm writing LVM partitions
|
|
d-i partman-lvm/confirm boolean true
|
|
d-i partman-lvm/confirm_nooverwrite boolean true
|
|
|
|
# Put all files in one partition
|
|
d-i partman-auto/choose_recipe select atomic
|
|
|
|
# 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
|
|
|
|
# This makes partman automatically partition without confirmation.
|
|
d-i partman-md/confirm boolean true
|
|
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
|
|
|
|
### Package selection
|
|
|
|
# Install SSH server
|
|
tasksel tasksel/first multiselect ssh-server
|
|
|
|
# Disable CDROM entries after install
|
|
d-i apt-setup/disable-cdrom-entries boolean true
|
|
|
|
# Upgrade packages after debootstrap
|
|
d-i pkgsel/upgrade select full-upgrade
|
|
|
|
# Disable popularity-contest
|
|
popularity-contest popularity-contest/participate boolean false
|
|
|
|
# Force MBR install regardless of existing OS
|
|
d-i grub-installer/only_debian boolean true
|
|
d-i grub-installer/with_other_os boolean true
|
|
d-i grub-installer/bootdev string /dev/vda
|
|
|
|
# Avoid that last message about the install being complete.
|
|
d-i finish-install/reboot_in_progress note
|
|
|
|
# Just before install finishes, install SSH keys into root
|
|
d-i preseed/late_command string \
|
|
mkdir -p /target/root/.ssh; \
|
|
wget -O /target/root/.ssh/authorized_keys \
|
|
https://raw.githubusercontent.com/krislamo/bootstrap/master/authorized_keys;
|