corrections
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
# Configuration preseed pour Debian 12 avec environnement Cinnamon Core
|
# Configuration preseed pour Debian 12 avec environnement Cinnamon Core
|
||||||
# Installation automatisée avec localisation française (Suisse)
|
# Installation automatisée avec localisation française (Suisse)
|
||||||
|
# Compatible UEFI et BIOS Legacy avec BTRFS et Timeshift
|
||||||
|
|
||||||
# Configuration de la localisation et du clavier
|
# Configuration de la localisation et du clavier
|
||||||
d-i debian-installer/locale string fr_CH.UTF-8
|
d-i debian-installer/locale string fr_CH.UTF-8
|
||||||
d-i localechooser/supported-locales multiselect fr_CH.UTF-8, en_US.UTF-8
|
d-i localechooser/supported-locales multiselect fr_CH.UTF-8, en_US.UTF-8
|
||||||
d-i keyboard-configuration/xkb-keymap select fr(ch)
|
d-i keyboard-configuration/xkb-keymap select ch(fr)
|
||||||
d-i keyboard-configuration/model select pc105
|
d-i keyboard-configuration/model select pc105
|
||||||
d-i keyboard-configuration/layout select fr
|
d-i keyboard-configuration/layout select ch
|
||||||
d-i keyboard-configuration/variant select ch
|
d-i keyboard-configuration/variant select fr
|
||||||
|
d-i keyboard-configuration/toggle select No toggling
|
||||||
|
|
||||||
# Configuration du réseau
|
# Configuration du réseau
|
||||||
d-i netcfg/choose_interface select auto
|
d-i netcfg/choose_interface select auto
|
||||||
@@ -30,42 +32,49 @@ d-i clock-setup/utc boolean true
|
|||||||
d-i time/zone string Europe/Zurich
|
d-i time/zone string Europe/Zurich
|
||||||
d-i clock-setup/ntp boolean true
|
d-i clock-setup/ntp boolean true
|
||||||
|
|
||||||
# Configuration du partitionnement automatique avec LVM
|
# Sélection automatique du disque
|
||||||
d-i partman-auto/method string lvm
|
d-i partman-auto/disk string /dev/sda /dev/nvme0n1 /dev/vda
|
||||||
d-i partman-auto-lvm/guided_size string max
|
d-i partman-auto/method string regular
|
||||||
d-i partman-auto-lvm/new_vg_name string debian-vg
|
|
||||||
d-i partman-lvm/device_remove_lvm boolean true
|
d-i partman-lvm/device_remove_lvm boolean true
|
||||||
d-i partman-lvm/confirm boolean true
|
|
||||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
|
||||||
d-i partman-md/device_remove_md boolean true
|
d-i partman-md/device_remove_md boolean true
|
||||||
d-i partman-auto/choose_recipe select atomic
|
d-i partman-auto/choose_recipe select btrfs-root
|
||||||
|
|
||||||
|
# Schéma de partitionnement BTRFS avec sous-volumes
|
||||||
d-i partman-auto/expert_recipe string \
|
d-i partman-auto/expert_recipe string \
|
||||||
boot-root :: \
|
btrfs-root :: \
|
||||||
|
1 1 1 free \
|
||||||
|
$iflabel{ gpt } \
|
||||||
|
$reusemethod{ } \
|
||||||
|
method{ biosgrub } \
|
||||||
|
. \
|
||||||
538 538 1075 free \
|
538 538 1075 free \
|
||||||
$iflabel{ gpt } \
|
$iflabel{ gpt } \
|
||||||
$reusemethod{ } \
|
$reusemethod{ } \
|
||||||
method{ efi } \
|
method{ efi } \
|
||||||
format{ } \
|
format{ } \
|
||||||
. \
|
. \
|
||||||
1024 4096 -1 ext4 \
|
512 512 512 ext2 \
|
||||||
$defaultignore{ } \
|
$primary{ } \
|
||||||
$lvmok{ } \
|
$bootable{ } \
|
||||||
lv_name{ root } \
|
|
||||||
method{ format } \
|
method{ format } \
|
||||||
format{ } \
|
format{ } \
|
||||||
use_filesystem{ } \
|
use_filesystem{ } \
|
||||||
filesystem{ ext4 } \
|
filesystem{ ext2 } \
|
||||||
|
mountpoint{ /boot } \
|
||||||
|
. \
|
||||||
|
4096 4096 -1 btrfs \
|
||||||
|
$primary{ } \
|
||||||
|
method{ format } \
|
||||||
|
format{ } \
|
||||||
|
use_filesystem{ } \
|
||||||
|
filesystem{ btrfs } \
|
||||||
mountpoint{ / } \
|
mountpoint{ / } \
|
||||||
|
options/subvol{ @ } \
|
||||||
.
|
.
|
||||||
|
|
||||||
# Confirmation du partitionnement
|
# Confirmation du partitionnement - demande validation
|
||||||
d-i partman-partitioning/confirm_write_new_label boolean true
|
d-i partman-partitioning/confirm_write_new_label boolean true
|
||||||
d-i partman/choose_partition select finish
|
d-i partman/choose_partition select finish
|
||||||
d-i partman/confirm boolean true
|
|
||||||
d-i partman/confirm_nooverwrite boolean true
|
|
||||||
d-i partman-efi/non_efi_system boolean true
|
|
||||||
d-i partman-basicfilesystems/no_swap boolean false
|
|
||||||
|
|
||||||
# Configuration de l'installation de base
|
# Configuration de l'installation de base
|
||||||
d-i base-installer/install-recommends boolean false
|
d-i base-installer/install-recommends boolean false
|
||||||
@@ -79,10 +88,10 @@ d-i apt-setup/use_mirror boolean true
|
|||||||
d-i apt-setup/services-select multiselect security, updates
|
d-i apt-setup/services-select multiselect security, updates
|
||||||
d-i apt-setup/security_host string security.debian.org
|
d-i apt-setup/security_host string security.debian.org
|
||||||
|
|
||||||
# Sélection minimale - pas de tasksel desktop
|
# Sélection minimale
|
||||||
tasksel tasksel/first multiselect standard
|
tasksel tasksel/first multiselect standard
|
||||||
|
|
||||||
# Paquets Cinnamon Core uniquement
|
# Paquets avec BTRFS et Timeshift
|
||||||
d-i pkgsel/include string \
|
d-i pkgsel/include string \
|
||||||
cinnamon-core \
|
cinnamon-core \
|
||||||
cinnamon-session \
|
cinnamon-session \
|
||||||
@@ -97,7 +106,11 @@ d-i pkgsel/include string \
|
|||||||
network-manager-gnome \
|
network-manager-gnome \
|
||||||
sudo \
|
sudo \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
firmware-linux-nonfree
|
firmware-linux-nonfree \
|
||||||
|
btrfs-progs \
|
||||||
|
timeshift \
|
||||||
|
snapper \
|
||||||
|
grub-btrfs
|
||||||
|
|
||||||
# Politique de mise à jour
|
# Politique de mise à jour
|
||||||
d-i pkgsel/update-policy select unattended-upgrades
|
d-i pkgsel/update-policy select unattended-upgrades
|
||||||
@@ -107,16 +120,33 @@ d-i pkgsel/upgrade select full-upgrade
|
|||||||
d-i grub-installer/only_debian boolean true
|
d-i grub-installer/only_debian boolean true
|
||||||
d-i grub-installer/with_other_os boolean true
|
d-i grub-installer/with_other_os boolean true
|
||||||
d-i grub-installer/bootdev string default
|
d-i grub-installer/bootdev string default
|
||||||
|
d-i grub-installer/force-efi-extra-removable boolean true
|
||||||
|
|
||||||
# Finalisation de l'installation
|
# Finalisation de l'installation
|
||||||
d-i finish-install/reboot_in_progress note
|
d-i finish-install/reboot_in_progress note
|
||||||
d-i cdrom-detect/eject boolean true
|
d-i cdrom-detect/eject boolean true
|
||||||
|
|
||||||
# Scripts de post-installation
|
# Scripts de post-installation pour BTRFS et Timeshift
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string \
|
||||||
in-target systemctl enable lightdm; \
|
in-target systemctl enable lightdm; \
|
||||||
in-target systemctl enable NetworkManager
|
in-target systemctl enable NetworkManager; \
|
||||||
|
in-target btrfs subvolume create /mnt/@home; \
|
||||||
|
in-target btrfs subvolume create /mnt/@snapshots; \
|
||||||
|
in-target btrfs subvolume create /mnt/@var; \
|
||||||
|
in-target btrfs subvolume create /mnt/@tmp; \
|
||||||
|
in-target mkdir -p /etc/timeshift; \
|
||||||
|
in-target echo 'backup_device_uuid = ""' > /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'parent_device_uuid = ""' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'do_first_run = false' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'btrfs_mode = true' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'include_btrfs_home_for_backup = false' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'include_btrfs_home_for_restore = false' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target echo 'stop_cron_emails = true' >> /etc/timeshift/timeshift.json; \
|
||||||
|
in-target systemctl enable snapper-timeline.timer; \
|
||||||
|
in-target systemctl enable snapper-cleanup.timer; \
|
||||||
|
in-target snapper -c root create-config /; \
|
||||||
|
in-target update-grub
|
||||||
|
|
||||||
# Interface semi-interactive pour les comptes utilisateurs
|
# Interface interactive pour validation utilisateur
|
||||||
d-i debconf/frontend select readline
|
d-i debconf/frontend select dialog
|
||||||
d-i debconf/priority select high
|
d-i debconf/priority select medium
|
||||||
Reference in New Issue
Block a user