This commit is contained in:
2025-06-30 20:45:26 +02:00
parent c0635d1d60
commit 65ce8dcca6
2 changed files with 45 additions and 24 deletions

View File

@@ -37,9 +37,25 @@ d-i time/zone string Europe/Zurich
d-i clock-setup/ntp boolean true
### Partitionnement
# Auto-detect the first available disk
d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
d-i partman-auto/method string regular
d-i partman-auto/disk string /dev/sda
d-i partman-auto/choose_recipe select atomic
# Custom recipe with Btrfs - EFI + Btrfs root partition
d-i partman-auto/expert_recipe string \
btrfs-root :: \
512 512 512 free \
$iflabel{ gpt } \
$reusemethod{ } \
method{ efi } \
format{ } \
. \
500 10000 -1 btrfs \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ btrfs } \
mountpoint{ / } \
.
# Confirmer le partitionnement
d-i partman-partitioning/confirm_write_new_label boolean true
@@ -83,7 +99,9 @@ d-i pkgsel/include string \
flatpak \
firmware-linux-nonfree \
printer-driver-all \
cups
cups \
btrfs-progs \
timeshift
# Mise à jour automatique
d-i pkgsel/update-policy select install-security-updates
@@ -123,6 +141,13 @@ d-i preseed/late_command string \
in-target gsettings set org.cinnamon.desktop.interface icon-theme 'Mint-Y' ; \
in-target gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y' ; \
in-target gsettings set org.cinnamon.theme name 'Mint-Y' ; \
in-target btrfs subvolume create /@home ; \
in-target btrfs subvolume create /@snapshots ; \
in-target mkdir -p /home /snapshots ; \
in-target mount -o subvol=@home /dev/$(lsblk -nr -o NAME,MOUNTPOINT | grep ' /$' | head -1 | cut -d' ' -f1) /home ; \
in-target mount -o subvol=@snapshots /dev/$(lsblk -nr -o NAME,MOUNTPOINT | grep ' /$' | head -1 | cut -d' ' -f1) /snapshots ; \
in-target timeshift --create --comments "Installation initiale" --tags D ; \
in-target systemctl enable cronie ; \
in-target update-grub
# Ne pas demander de confirmation pour les packages