81 lines
3.3 KiB
Django/Jinja
Executable File
81 lines
3.3 KiB
Django/Jinja
Executable File
# Preseed file for automated Debian installation
|
|
|
|
# Locale settings
|
|
d-i debian-installer/locale string en_US.UTF-8
|
|
d-i console-setup/ask_detect boolean false
|
|
d-i keyboard-configuration/xkb-keymap select us
|
|
|
|
# Network configuration
|
|
d-i netcfg/disable_dhcp6 boolean true
|
|
d-i netcfg/dhcp6_timeout string 1
|
|
d-i netcfg/choose_interface select auto
|
|
d-i netcfg/get_hostname string cosmos-base
|
|
d-i netcfg/get_domain string home.cosmos
|
|
|
|
# Mirror settings
|
|
d-i mirror/country string manual
|
|
d-i mirror/http/hostname string deb.debian.org
|
|
d-i mirror/http/directory string /debian
|
|
d-i mirror/http/proxy string
|
|
d-i mirror/codename string bookworm
|
|
|
|
# Account setup
|
|
d-i passwd/root-password-crypted password {{ cosmos_root_password | password_hash('sha512') }}
|
|
d-i passwd/make-user boolean true
|
|
d-i passwd/user-fullname string Cosmos User
|
|
d-i passwd/username string cosmos
|
|
d-i passwd/user-password-crypted password {{ cosmos_password | password_hash('sha512') }}
|
|
|
|
# Clock and time zone setup
|
|
d-i clock-setup/utc boolean true
|
|
d-i time/zone string America/Los_Angeles
|
|
d-i clock-setup/ntp boolean true
|
|
|
|
# Partitioning - Regular working
|
|
# This does standard partitioning i.e. not LVM
|
|
# d-i partman-auto/method string regular
|
|
# Obviously this selects the disk
|
|
d-i partman-auto/disk select auto
|
|
# /dev/sda
|
|
# The atomic recipe creates a very simple partitioning scheme with just a single root partition and swap space.
|
|
d-i partman-auto/choose_recipe select atomic
|
|
# this top one is the magic one that made the prompt go away; huzzah
|
|
# This line tells the installer to finalize the partitioning setup.
|
|
# By selecting finish, you indicate that you have completed the partitioning and
|
|
# the installer should proceed to format the partitions and continue with the installation.
|
|
# It's part of the process to automate the steps without manual confirmation
|
|
d-i partman/choose_partition select finish
|
|
# This setting automatically confirms the partitioning changes,
|
|
# allowing the installer to proceed without asking for user confirmation.
|
|
# Setting this to true is important for fully automated installations,
|
|
# as it avoids stopping the installation process to ask if you want to write the changes to disk.
|
|
d-i partman/confirm boolean true
|
|
# This line automatically confirms overwriting existing partitions on the disk.
|
|
# By setting this to true, the installer will overwrite any existing data
|
|
# on the specified disk without prompting for user confirmation.
|
|
# This is useful for fully automated installations where you want to ensure that old data is removed.
|
|
d-i partman/confirm_nooverwrite boolean true
|
|
|
|
# Opt out of the popularity contest survey
|
|
popularity-contest popularity-contest/participate boolean false
|
|
|
|
# Package selection
|
|
tasksel tasksel/first multiselect standard, ssh-server
|
|
d-i pkgsel/include string openssh-server curl
|
|
d-i pkgsel/upgrade select none
|
|
|
|
# Late command to download and execute a script
|
|
d-i preseed/late_command string \
|
|
in-target curl -o /root/cosmos-init.sh -L https://pxe:{{ pxe_auth }}@mattifactory.com/dhcp/cosmos-init.sh; \
|
|
in-target chmod +x /root/cosmos-init.sh; \
|
|
in-target /root/cosmos-init.sh
|
|
|
|
# Grub installation
|
|
d-i grub-installer/only_debian boolean true
|
|
d-i grub-installer/with_other_os boolean false
|
|
|
|
# Reboot after installation
|
|
d-i finish-install/reboot_in_progress note
|
|
|
|
# Shutdown after installation
|
|
d-i debian-installer/exit/poweroff boolean true |