0

I'm trying to get complete unattended installation of Debian bullseye. I need 3 mirrored gpt partitions:

  • 1M for grub code
  • 1G for /boot
  • rest for lvm containing swap and rootfs

The problem is that portman miss /boot partition creating just two partitions (first is 1M and second is the rest of the disk) so raid creation fails. I've tried various options, min/max sizes and priority values with no luck. Portman always creates two partitions insted of three. What am I missing?

This is a part of the preseed file:

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
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto-lvm/new_vg_name string vg0

d-i partman-auto-raid/recipe string         \
            1 2 0 ext4 /boot                \
                /dev/sda2#/dev/sdb2         \
            .                               \
            1 2 0 lvm -                     \
                /dev/sda3#/dev/sdb3         \
            .

d-i partman-auto/expert_recipe string           \
multiraid ::                                    \
1 1 1 free                                      \
        $gptonly{ }                             \
        $primary{ }                             \
        $bios_boot{ }                           \
        $lvmignore{ }                           \
        $bootable{ }                            \
        method{ biosgrub }                      \
.                                               \
1024 20 1024 raid                               \
        $gptonly{ }                             \
        $lvmignore{ }                           \
        $primary{ }                             \
        method{ raid }                          \
.                                               \    
20000 10 -1 raid                                \
        $gptonly{ }                             \
        $lvmignore{ }                           \
        $primary{ }                             \
        method{ raid }                          \
.                                               \                 
8192 30 8192 linux-swap                         \
        $defaultignore{ }                       \
        $lvmok{ }                               \
        method{ swap } format{ }                \
        lv_name{ swap }                         \
.                                               \
10000 40 -1 ext4                                \
        $defaultignore{ }                       \
        $lvmok{ }                               \
        method{ format } format{ }              \
        use_filesystem{ } filesystem{ ext4 }    \
        mountpoint{ / }                         \
        lv_name{ rootfs }                       \
.                                               

d-i partman/confirm_write_new_label     boolean true
d-i partman/confirm_nooverwrite         boolean true
d-i partman/confirm                     boolean true
d-i partman-auto/purge_lvm_from_device  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-auto-lvm/no_boot            boolean true
d-i partman-md/device_remove_md         boolean true
d-i partman-md/confirm                  boolean true
d-i partman-md/confirm_nooverwrite      boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
  • take a look [here](https://www.debian.org/releases/bullseye/example-preseed.txt) it's based on the [manual](https://wiki.debian.org/DebianInstaller/Preseed) – djdomi Aug 25 '22 at 17:35

0 Answers0