Files
vms/distros/debian/12/http/preseed.cfg
T

70 lines
3.1 KiB
INI
Raw Normal View History

2023-08-11 20:36:18 -05:00
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
d-i passwd/root-password-again password vagrant
d-i passwd/root-password password vagrant
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i time/zone string UTC
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
scheme :: \
2023-12-30 05:37:32 +00:00
512 50 512 fat32 \
2023-08-11 20:36:18 -05:00
$primary{ } \
$bootable{ } \
2023-12-30 05:37:32 +00:00
method{ efi } \
2023-08-11 20:36:18 -05:00
format{ } \
2023-12-30 05:37:32 +00:00
mountpoint{ /boot/efi } . \
2023-08-11 20:36:18 -05:00
200% 0 200% linux-swap \
$primary{ } \
method{ swap } \
format{ } . \
1 0 -1 ext4 \
$primary{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } .
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
2023-12-30 05:37:32 +00:00
# Settings for package manager
2023-08-11 20:36:18 -05:00
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
2023-12-30 05:37:32 +00:00
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/cdrom/set-next boolean false
d-i apt-setup/cdrom/set-failed boolean false
d-i mirror/country string manual
d-i mirror/http/hostname string httpredir.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
2023-08-11 20:36:18 -05:00
2023-12-30 05:37:32 +00:00
# Package selection
2023-08-11 20:36:18 -05:00
tasksel tasksel/first multiselect
2023-12-30 05:37:32 +00:00
d-i pkgsel/include string curl openssh-server sudo python3 network-manager
popularity-contest popularity-contest/participate boolean false
2023-08-11 20:36:18 -05:00
d-i grub-installer/bootdev string default
2023-12-30 05:37:32 +00:00
d-i grub-installer/force-efi-extra-removable boolean true
2023-08-11 20:36:18 -05:00
d-i finish-install/reboot_in_progress note
d-i preseed/early_command string \
sed -i \
-e "/in-target/i echo 'd() { /sbin/discover \"\$@\" | grep -v virtualbox; }' > /target/etc/discover-pkginstall.conf" \
-e "/in-target/i echo 'discover=d' >> /target/etc/discover-pkginstall.conf" \
/usr/lib/pre-pkgsel.d/20install-hwpackages
d-i preseed/late_command string \
2023-12-30 05:37:32 +00:00
echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \
2023-08-11 20:36:18 -05:00
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \
2023-12-07 12:15:48 -06:00
chmod 440 /target/etc/sudoers.d/vagrant; \
2023-12-30 05:37:32 +00:00
sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces; \
2023-12-07 12:15:48 -06:00
in-target apt-get update; \
2023-12-30 05:37:32 +00:00
in-target apt-get upgrade -y