Hi, On Sun, 5 Sep 2021 10:37:13 +0200 Pascal Hambourg <pascal@plouf.fr.eu.org> wrote: > On Sun, 25 Apr 2021 17:33:28 +0000 Martin <debacle@debian.org> wrote: > > Also I assume, that desktop PCs are more oftenly installed > > relying on d-i defaults, while servers are typically installed > > by experienced admins. > > I agree and am afraid that the new swap size will bite many users who > want hibernation on desktop or laptop PCs and use guided partitioning. > Besides, I cannot even imagine anyone using guided partitioning on a server. > > > I'ld prefer the solution suggested in #780208, because it helps > > in other cases, too. > > Guided partitioning using LVM allows to reserve some free space in the > volume group, which can be used later to extend logical volumes. if, like me, you have found this bug after wondering about the 1 GB small swap partition on your brand-new Debian installation, here is a workaround that lets the guided partitioner select a swap size roughly equal to your RAM size. In the installer menu, press "e" to edit the default installation option. In the line that says "linux /install.amd/vmlinuz" add the following separated by a space after vmlinuz: partman-auto/cap-ram=n Then press Ctrl-x or F10 to boot debian-installer with your changes. This will result in uncapped swap size which should be fine for normal laptops and desktops. If instead you want to set a fixed cap at a certain number of MB, you can instead add: partman-auto/cap-ram=1024 This will cap the swap size to 1024 MB. This is currently the default. Increase this value to get a larger swap partition (size is given in MB) or replace it by a arbitrary string like the "n" above to not have swap size capped at all. Here is the description of cap-rm from partman-auto.templates in the partman-auto source package: Description: for internal use; can be preseeded Cap RAM size to specified size in MB, when calculating the swap partition size. Defaults to 1024, meaning 1GB, and since swap is maximum 200% of RAM in the default recipes, it results in swap partitions to be capped at 2GB. To revert to previous behaviour of uncapped swap size with respect to available ram, preseed this key to any string, e.g. partman-auto/cap-ram=false Maybe this helps somebody. Thanks to pham from the #debian-boot IRC channel for this tip! Thanks! cheers, josch
Attachment:
signature.asc
Description: signature