Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly

2023-07-28 Thread Pascal Hambourg

Hello Holger,

On 28/07/2023 at 10:48, Holger Wansing wrote:


With a bookworm 12.0 netinst image:
when choosing guided partitioning -> set up LVM, it is now allowed to use
binary units for volume group size (MiB, GiB, ...), but the size is wrongly
calculated.
For example, if I choose a volume group of 12 GiB, I get one with 11,9 GB, but
it should be roughly 12,9 GB.


1) How do you choose the VG size ? AFAICS, the only possible choice is 
to restrict the VG use to a given size or percentage.


2) How do you see the VG size ?

I tested guided LVM with all in one partition and restrict the VG used 
size to 12 GiB and I get a root LV of 11.9 GB and a swap LV of 1 GB, so 
a total use of 12.9 GB as expected. vgs shows 12 GiB used.




Bug#1042437: partman-auto-lvm: using binary units for size of volume group does not work correctly

2023-07-28 Thread Holger Wansing
Package: partman-auto-lvm
Severity: normal


With a bookworm 12.0 netinst image:
when choosing guided partitioning -> set up LVM, it is now allowed to use
binary units for volume group size (MiB, GiB, ...), but the size is wrongly
calculated.
For example, if I choose a volume group of 12 GiB, I get one with 11,9 GB, but 
it should be roughly 12,9 GB.

Using the manual way of configuring (so not guided partitioning, but manual),
it works correctly.


Holger



-- 
Holger Wansing 
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076