diff --git a/preseed/debian/bullseye/preseed.cinnamon.uefi.cfg b/preseed/debian/bullseye/preseed.cinnamon.uefi.cfg index 54078f2..e101e4d 100644 --- a/preseed/debian/bullseye/preseed.cinnamon.uefi.cfg +++ b/preseed/debian/bullseye/preseed.cinnamon.uefi.cfg @@ -146,40 +146,46 @@ d-i partman-auto/init_automatically_partition select custom ### - crypto: use LVM within an encrypted partition d-i partman-auto/method string lvm -d-i partman-lvm/device_remove_lvm boolean true - ## It's not ok to have /boot in the LVM d-i partman-auto-lvm/no_boot boolean false -# Remove old LVM configuration -d-i partman-lvm/device_remove_lvm boolean true -d-i partman-lvm/device_remove_lvm_span boolean true +## Remove old LVM configuration +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-lvm/device_remove_lvm_span boolean true -# Remove old RAID configuration -#d-i partman-md/device_remove_md boolean true -# Confirm to write the LVM partitions -d-i partman-lvm/confirm boolean true -d-i partman-lvm/confirm_nooverwrite boolean true +## Remove old RAID configuration +d-i partman-md/device_remove_md boolean true +d-i partman-md/confirm boolean true -# Keep that one set to true so we end up with a UEFI enabled -# system. If set to false, /var/lib/partman/uefi_ignore will be touched -d-i partman-efi/non_efi_system boolean true +## Confirm to write the LVM partitions +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true -# enforce usage of GPT - a must have to use EFI! -d-i partman-basicfilesystems/choose_label string gpt -d-i partman-basicfilesystems/default_label string gpt -d-i partman-partitioning/choose_label string gpt -d-i partman-partitioning/default_label string gpt -d-i partman/choose_label string gpt -d-i partman/default_label string gpt +## Keep that one set to true so we end up with a UEFI enabled +## system. If set to false, /var/lib/partman/uefi_ignore will be touched +d-i partman-efi/non_efi_system boolean true -# LVM partition -# This recipe need almost 30Gb free space it's add all +## Enforce usage of GPT - a must have to use EFI! +d-i partman-basicfilesystems/choose_label string gpt +d-i partman-basicfilesystems/default_label string gpt +d-i partman-partitioning/choose_label string gpt +d-i partman-partitioning/default_label string gpt +d-i partman/choose_label string gpt +d-i partman/default_label string gpt + +## Volume Group/vg name +d-i partman-auto-lvm/new_vg_name string sys + +### Specify the expected size +d-i partman-auto-lvm/guided_size string max + +## LVM partition +### This recipe need almost 30Gb free space. # sda2 (16Gb), lv_* (~14Gb) then it should not count it because # all logical volume are on sda2 ... d-i partman-auto/expert_recipe string \ boot-root :: \ - 538 538 1075 free \ + 538 300000 1075 free \ $iflabel{ gpt } \ $reusemethod{ } \ method{ efi } \ @@ -256,29 +262,28 @@ d-i partman-auto/expert_recipe string \ in_vg{ sys } lv_name{ lv_swap } \ method{ swap } format{ } \ . \ - 100 100 -1 ext4 \ + 100 100 -1 ext3 \ $lvmok{ } \ in_vg{ sys } lv_name{ lv_free } \ method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ + use_filesystem{ } filesystem{ ext3 } \ label{ free } \ mountpoint{ /mnt/free } \ . ## Need to put all free space in a temp logical volume/partition -# Otherwise it's the last partition which get all free space +## Otherwise it's the last partition which get all free space -# Allow to not set a swap partition +## Allow to not set a swap partition #d-i partman-basicfilesystems/no_swap boolean false ## Return to menu if no mount point is assigned to a filesystem d-i partman-basicfilesystems/no_mount_point boolean false -# Automatically partition without confirmation -d-i partman/confirm_write_new_label boolean true -d-i partman/choose_partition select finish -d-i partman-md/confirm boolean true -d-i partman/confirm boolean true -d-i partman/confirm_nooverwrite boolean true +## Automatically partition without confirmation +d-i partman/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 ################################################################## ]]] ## Kernel [[[ diff --git a/preseed/debian/bullseye/preseed.cinnamon.uefi.cipher.cfg b/preseed/debian/bullseye/preseed.cinnamon.uefi.cipher.cfg index bb29feb..3e68252 100644 --- a/preseed/debian/bullseye/preseed.cinnamon.uefi.cipher.cfg +++ b/preseed/debian/bullseye/preseed.cinnamon.uefi.cipher.cfg @@ -173,7 +173,7 @@ d-i partman-partitioning/default_label string gpt d-i partman/choose_label string gpt d-i partman/default_label string gpt -## Volume Group/vg +## Volume Group/vg name d-i partman-auto-lvm/new_vg_name string crypt ### Specify the expected size diff --git a/preseed/debian/bullseye/preseed.gnome.uefi.cfg b/preseed/debian/bullseye/preseed.gnome.uefi.cfg index d86c15e..d6a680f 100644 --- a/preseed/debian/bullseye/preseed.gnome.uefi.cfg +++ b/preseed/debian/bullseye/preseed.gnome.uefi.cfg @@ -262,11 +262,11 @@ d-i partman-auto/expert_recipe string \ in_vg{ sys } lv_name{ lv_swap } \ method{ swap } format{ } \ . \ - 100 100 -1 ext4 \ + 100 100 -1 ext3 \ $lvmok{ } \ in_vg{ sys } lv_name{ lv_free } \ method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ + use_filesystem{ } filesystem{ ext3 } \ label{ free } \ mountpoint{ /mnt/free } \ . diff --git a/preseed/debian/bullseye/preseed.gnome.uefi.cipher.cfg b/preseed/debian/bullseye/preseed.gnome.uefi.cipher.cfg index 4509fe4..b9f496d 100644 --- a/preseed/debian/bullseye/preseed.gnome.uefi.cipher.cfg +++ b/preseed/debian/bullseye/preseed.gnome.uefi.cipher.cfg @@ -173,7 +173,7 @@ d-i partman-partitioning/default_label string gpt d-i partman/choose_label string gpt d-i partman/default_label string gpt -## Volume Group/vg +## Volume Group/vg name d-i partman-auto-lvm/new_vg_name string crypt ### Specify the expected size @@ -193,6 +193,7 @@ d-i partman-auto/expert_recipe string \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ + label{ boot } \ mountpoint{ /boot } \ . \ 1000 8000 3000 ext4 \