Hello,

On 25/07/2024 at 20:38, Holger Wansing wrote:

on big disks (> 10G I guess) the ESP is already 1G

Actually not. As mentioned in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076952>, the recipe had MIN=PRIORITY which resulted in the size being stuck to MIN (538 MB) regardless of the available disk size.

Only on smaller disks it has ~512MB, so that could be changed to ~768MB
to be consistent with /boot.

OK. But with MIN=806 and PRIO=850 (how did you define this value ?), the increment factor (PRIO-MIN=44) is too low to allow any growth when partitioning without LVM.

Explanation: raw increment factors are normalized on a base 100 and rounded to integers. It means that it a raw increment factor is less than 1% of the sum of all increment factors, then the normalized increment factor equals 0 and the partition cannot grow.

The sum of raw factors is over 80000, so 44*100/8000=0,55 rounded to 0.

When partitioning with LVM, the lvmok partitions (/ /home swap...) are ignored for the non-lvmok partitions (efi, /boot) calculation size. Instead, a lvm partition with PRIO=900 is used. With such low value, the normalized increment factor for the ESP equals 4 and the maximum size 1075 MB is reached with a disk size of 9 GB.

I anticipated this and looked at partman-auto-lvm for way to set the same partition sizes with and without LVM. Not easy.

Reply via email to