This commit is contained in:
lapatatadouce
2025-07-15 22:54:17 +02:00
parent 588d901ca7
commit ba86c1be05
7 changed files with 128 additions and 158 deletions

154
files_to_inject/preseeds/default.preseed Normal file → Executable file
View File

@@ -1,116 +1,68 @@
### Network configuration
# Configuration de la langue et de la localisation
d-i debian-installer/locale string fr_CH.UTF-8
d-i preseed/early_command string debconf-set-selections /tmp/preseed.cfg
# Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean false
d-i netcfg/get_hostname string yunohost
d-i netcfg/get_domain string yunohost.org
d-i netcfg/get_hostname string skylanix
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
### Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Désactivation du compte root
d-i passwd/root-login boolean false
### Localization
# Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
d-i tzdata/Areas select Europe
d-i localechooser/continentlist select Europe
d-i time/zone string Europe/Paris
d-i time/zone seen false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 0.fr.pool.ntp.org
d-i clock-setup/ntp seen false
### Partitioning
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select atomic
# "atomic" corresponds to:
# https://salsa.debian.org/installer-team/partman-auto/-/blob/162/recipes/atomic
# https://salsa.debian.org/installer-team/partman-auto/-/blob/162/recipes-amd64-efi/atomic
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-auto-lvm/new_vg_name string system
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman/confirm_write_new_label boolean true
# These lines are commented to keep displaying the partitioning info and ask confirmation
# because it's deemed to brutal to savagely format the disk without asking confirmation here
#d-i partman/choose_partition select finish
#d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
### Account setup
d-i passwd/root-password-crypted password $1$6xBdkGvE$8nLCNRxwABespdFJniEiX0
d-i passwd/make-user boolean false
### Base system installation
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean true
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
d-i apt-setup/local0/repository string \
http://repo.yunohost.org/debian/ __DIST__ stable __TESTING__
d-i apt-setup/local0/key string http://repo.yunohost.org/keys/yunohost___DIST__.asc
d-i apt-setup/local0/comment string YunoHost repository
#d-i debian-installer/allow_unauthenticated string true
# Skip "scan another CD/DVD"
# https://unix.stackexchange.com/a/409237
apt-cdrom-setup apt-setup/cdrom/set-next boolean false
# Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
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
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
# Keep postfix in here, otherwise exim4 might get installed and create a weird
# conflict...
d-i pkgsel/include string postfix yunohost yunohost-admin
d-i pkgsel/upgrade select none
# Activation des dépôts non-free
d-i apt-setup/non-free boolean true
### Deactivate poll on popular packages
popularity-contest popularity-contest/participate boolean false
debconf debconf/frontend select Noninteractive
# Sélection des tâches à installer
tasksel tasksel/first multiselect minimal
### Boot loader installation
# Paquets additionnels à installer
d-i pkgsel/include string \
kde-plasma-desktop \
vim \
wget \
curl \
git \
htop \
network-manager \
spice-vdagent
# Ajout du dépôt XanMod et installation du kernel
d-i preseed/late_command string \
in-target mkdir -p /etc/apt/keyrings ; \
in-target wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key ; \
in-target sh -c "echo 'deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main' > /etc/apt/sources.list.d/xanmod.list" ; \
in-target apt-get update ; \
in-target apt-get install -y linux-xanmod-x64v3
# Installation de GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string default
### Finishing up the installation
# Demander à l'utilisateur de choisir où installer GRUB
d-i grub-installer/bootdev seen false
# Message indiquant que le redémarrage est en cours
d-i finish-install/reboot_in_progress note
d-i cdrom-detect/eject boolean true
d-i debian-installer/exit/reboot boolean true
### YunoHost Debconf (same than in yunohost/install_script)
slapd slapd/password1 password yunohost
slapd slapd/password2 password yunohost
slapd slapd/domain string yunohost.org
slapd shared/organization string yunohost.org
slapd slapd/allow_ldap_v2 boolean false
slapd slapd/invalid_config boolean true
slapd slapd/backend select MDB
postfix postfix/main_mailer_type select Internet Site
postfix postfix/mailname string /etc/mailname
mysql-server-5.5 mysql-server/root_password password yunohost
mysql-server-5.5 mysql-server/root_password_again password yunohost
mariadb-server-10.0 mysql-server/root_password password yunohost
mariadb-server-10.0 mysql-server/root_password_again password yunohost
nslcd nslcd/ldap-bindpw password
nslc nslcd/ldap-starttls boolean false
nslcd nslcd/ldap-reqcert select
nslcd nslcd/ldap-uris string ldap://localhost/
nslcd nslcd/ldap-binddn string
nslcd nslcd/ldap-base string dc=yunohost,dc=org
libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow
postsrsd postsrsd/domain string yunohost.org
### Avoid circular dependencies error
d-i preseed/early_command string apt-install debhelper || true