On Wed, 18 Jun 2025 06:15:19 +0000 Gary Major wrote:
I have been trying to get a preseed configuration working for a few days and have finally gotten to the point where it mostly works. However, the last logical volume in the partitioning takes up the remaining space in the volume group, irrespective of settings. It appears to be the exact same issue as a previous bug. I have copied my config for your reference. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904184
By design, partman-auto allocates all remaining free space in the disk or VG to the last partition regardless of the specified minimum and maximum sizes. See create_partitions() in lib/auto-shared.sh. Whether this is a bug or not is open to debate.
When using guided partitioning with LVM, you can specify the amount of volume group space to use in partman-auto-lvm/guided_size, either as an absolute size or a percentage of available space. Else, a workaround is to create a last dummy partition and delete it afterwards.