Hi,

Pascal Hambourg <pas...@plouf.fr.eu.org> wrote (Thu, 25 Jul 2024 21:47:19 
+0200):
> 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.

Yes, I noticed that already :-)

> > 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.

The ESP seems to be a special case regarding the calculation of the disk size.
There was a changing
https://salsa.debian.org/installer-team/partman-auto/-/commit/a5df6f5c98a58bb81e688fc3c2b6532833a8e4d0
which bumped the 512 to 538 MB and the 1024 to 1075 MB.

Thus, I based my rough calculation on that new values (768 + that 'overhead'
from above).

> 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.

Hmm, that seems a bit out of my skills :-(
But if a value of 538 worked for 512MB, why should 806 not work then for 
~768MB ?


Holger

-- 
Holger Wansing <hwans...@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

Reply via email to