ipxe/trixie_preseed.cfg

223 lines
9.5 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GARAGE PRESEED #
# DEBIAN 13 TRIXIE
# POST INSTALL GARAGE
bootstrap-base base-installer/initramfs-tools/driver-policy select generic
### Localization
# Preseeding only locale sets language, country and locale.
#d-i debian-installer/locale string fr_FR
d-i preseed/early_command string kill-all-dhcp; netcfg
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string fr
#d-i debian-installer/country string FR
#d-i debian-installer/locale string fr_FR.UTF-8
# Optionally specify additional locales to be generated.
#d-i localechooser/supported-locales multiselect en_US.UTF-8, fr_FR.UTF-8
### Localization
d-i debian-installer/language string fr
d-i debian-installer/country string FR
d-i debian-installer/locale string fr_FR.UTF-8
### Keyboard configuration
d-i console-keymaps-at/keymap select fr
d-i keyboard-configuration/xkb-keymap select fr
d-i keyboard-configuration/layoutcode string fr
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string latin9
d-i keyboard-configuration/optionscode string
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
# from being shown, even if values come from dhcp.
# d-i netcfg/domain seen false
d-i netcfg/get_domain string garage
d-i netcfg/domain string garage
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
d-i netcfg/get_hostname string debian
d-i netcfg/hostname string debian
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
#d-i netcfg/dhcp_hostname string radish
### 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
# local mirror
#d-i mirror/country string manual
#d-i mirror/http/hostname string 192.168.0.106
#d-i mirror/http/directory string /debian
#d-i mirror/http/proxy string
#d-i apt-setup/use_mirror boolean true
#d-i apt-setup/cdrom/set-first boolean false
# Suite to install.
#d-i mirror/suite string testing
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string testing
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
# PAS DE COMPTE ROOT > UTILISATION DE SUDO
d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
# CREATION DE L'UTILISATEUR SUDOER
d-i passwd/user-fullname string visiteur
d-i passwd/username string visiteur
d-i passwd/user-password password visiteur
d-i passwd/user-password-again password visiteur
### 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 Europe/Paris
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
#d-i clock-setup/ntp-server string ntp.example.com
### Partitioning
d-i partman-auto/method string lvm
# You can define the amount of space that will be used for the LVM volume
# group. It can either be a size with its unit (eg. 20 GB), a percentage of
# free space or the 'max' keyword.
d-i partman-auto-lvm/guided_size string max
# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
d-i partman-auto/choose_recipe select atomic
# 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
## Controlling how partitions are mounted
# The default is to mount by UUID, but you can also choose "traditional" to
# use traditional device names, or "label" to try filesystem labels before
# falling back to UUIDs.
#d-i partman/mount_style select uuid
### Base system installation
# Configure APT to not install recommended packages by default. Use of this
# option can result in an incomplete system and should only be used by very
# experienced users.
#d-i base-installer/install-recommends boolean false
# The kernel image (meta) package to be installed; "none" can be used if no
# kernel is to be installed.
#d-i base-installer/kernel/image string linux-image-686
### Apt setup
# Choose, if you want to scan additional installation media
# (default: false).
d-i apt-setup/cdrom/set-first boolean false
# You can choose to install non-free firmware.
### Package selection
#tasksel tasksel/first multiselect standard, web-server, kde-desktop
tasksel tasksel/first multiselect standard, desktop, laptop, print-server, ssh-server
d-i pkgsel/include string curl git wget apt-transport-https ca-certificates curl gnupg2 samba w3m elinks links2 rsync screen udisks2
# Or choose to not get the tasksel dialog displayed at all (and don't install
# any packages):
#d-i pkgsel/run_tasksel boolean false
# Individual additional packages to install
#d-i pkgsel/include string openssh-server build-essential
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
#d-i pkgsel/upgrade select none
# You can choose, if your system will report back on what software you have
# installed, and what software you use. The default is not to report back,
# but sending reports helps the project determine what software is most
# popular and should be included on the first CD/DVD.
popularity-contest popularity-contest/participate boolean false
### Boot loader installation
# Grub is the boot loader (for x86).
# This is fairly safe to set, it makes grub install automatically to the UEFI
# partition/boot record if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the UEFI partition/boot record, if
# it also finds some other OS, which is less safe as it might not be able to
# boot that other OS.
d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the primary drive can
# not be determined safely in general, so this needs to be specified:
#d-i grub-installer/bootdev string /dev/sda
# To install to the primary device (assuming it is not a USB stick):
d-i grub-installer/bootdev string default
### Finishing up the installation
d-i preseed/late_command string \
# Crée le dossier et clone le dépôt
in-target mkdir -p /home/visiteur/postinstall; \
in-target git clone https://git.legaragenumerique.fr/GARAGENUM/trixie-gn-postinstall.git /home/visiteur/postinstall; \
in-target chmod +x /home/visiteur/postinstall/post_install_trixie.sh; \
\
# Crée le service systemd pour exécuter le script sur tty1 au premier boot
in-target bash -c 'echo "[Unit]" > /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "Description=Post-install configuration script" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "After=systemd-user-sessions.service" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "Before=getty@tty1.service" >> /etc/systemd/system/postinstall.service'; \
\
in-target bash -c 'echo "[Service]" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "Type=simple" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "ExecStart=/bin/bash -c \"chvt 1; exec /bin/bash /home/visiteur/postinstall/post_install_trixie.sh\"" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "StandardInput=tty" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "StandardOutput=inherit" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "TTYPath=/dev/tty1" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "TTYReset=yes" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "TTYVHangup=yes" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "TTYVTDisallocate=yes" >> /etc/systemd/system/postinstall.service'; \
\
in-target bash -c 'echo "[Install]" >> /etc/systemd/system/postinstall.service'; \
in-target bash -c 'echo "WantedBy=multi-user.target" >> /etc/systemd/system/postinstall.service'; \
\
# Active le service pour quil sexécute au redémarrage
in-target systemctl enable postinstall.service
#d-i debian-installer/exit/halt boolean true
# This will power off the machine instead of just halting it.
d-i debian-installer/exit/poweroff boolean true
# d-i finish-install/keep-consoles boolean true