Add Linux Mint
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
d-i debconf/frontend select Noninteractive
|
||||
d-i debconf/priority select critical
|
||||
|
||||
d-i debian-installer/locale string en_US.UTF-8
|
||||
# If you don't set locale separately, you will still get asked
|
||||
d-i debian-installer/language string en
|
||||
d-i debian-installer/country string US
|
||||
d-i debconf/language string en
|
||||
d-i console-setup/ask_detect boolean false
|
||||
|
||||
# Setup the keyboard
|
||||
d-i keyboard-configuration/layout select English (US)
|
||||
d-i keyboard-configuration/variant select English (US)
|
||||
d-i keyboard-configuration/keyboardcode select English (US)
|
||||
d-i keyboard-configuration/xkb-keymap select us
|
||||
d-i keyboard-configuration/toggle select No toggling
|
||||
d-i keyboard-configuration/layoutcode string us
|
||||
|
||||
# Choose whatever network seems good at the time
|
||||
d-i netconfig/choose_interface select auto
|
||||
d-i netcfg/get_hostname string vagrant
|
||||
d-i netcfg/get_domain string vagrant
|
||||
|
||||
# Setup vagrant user with vagrant passwords and such
|
||||
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
|
||||
|
||||
# Assume UTC time, to let user change if wanted
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string UTC
|
||||
|
||||
# Just use plain partitions
|
||||
ubiquity partman-auto/method string regular
|
||||
# Don't prompt removing LVM
|
||||
ubiquity partman-lvm/device_remove_lvm boolean true
|
||||
# Don't prompt removing software RAID
|
||||
ubiquity partman-md/device_remove_md boolean true
|
||||
|
||||
# Put everything on one partition, then confirm
|
||||
d-i partman-auto/choose_recipe select atomic
|
||||
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
|
||||
ubiquity partman/confirm boolean true
|
||||
ubiquity partman-partitioning/confirm_write_new_label boolean true
|
||||
ubiquity partman/choose_partition select finish
|
||||
ubiquity partman/confirm boolean true
|
||||
ubiquity partman/confirm_nooverwrite boolean true
|
||||
|
||||
# Install to MBR, regardless of disk contents
|
||||
d-i grub-installer/only_debian boolean true
|
||||
d-i grub-installer/with_other_os boolean true
|
||||
d-i grub-installer/bootdev string default
|
||||
#d-i grub-installer/force-efi-extra-removable boolean true
|
||||
|
||||
# Settings for package manager
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
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/proxy string
|
||||
ubiquity ubiquity/use_nonfree boolean false
|
||||
|
||||
# Package selection
|
||||
tasksel tasksel/first multiselect
|
||||
#d-i pkgsel/include string curl openssh-server sudo python3 network-manager
|
||||
popularity-contest popularity-contest/participate boolean false
|
||||
|
||||
|
||||
# Skip final message about completed install
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i ubiquity/summary note
|
||||
ubiquity ubiquity/reboot boolean true
|
||||
|
||||
ubiquity ubiquity/success_command string \
|
||||
echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \
|
||||
chmod 440 /target/etc/sudoers.d/vagrant; \
|
||||
sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces; \
|
||||
IF=$(ip -br a|grep DOWN|head -1|awk '{print $1}'); \
|
||||
ip link set up dev $IF; \
|
||||
dhclient $IF; \
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y; \
|
||||
in-target apt-get install -y openssh-server
|
||||
Reference in New Issue
Block a user