[Bug 1767299] Re: Ubuntu 18.04 Installer creates swap partition too small
dragon788
ubuntuone at deik.me
Mon Jun 25 18:58:38 UTC 2018
Per the above the flag appears to work, and it appears that setting the
cap still does the automatic detection when the system memory is equal
to or less than the cap.
For example I hardcoded 16384 per above to handle swap for our 32GB RAM
laptops, and on our 16GB RAM laptops it knows the system RAM is less and
correctly set the actual swap size to 16GB not 32GB.
I'm still not super enthusiastic that this change was applied globally
as the default, especially considering it is much easier to throw away
an essentially ephemeral cloud compute instance that was the use case
for changing the default in the first place, and those would be much
easier to customize and test with a flag than every enterprise using
Ubuntu for laptops having to scratch their head and hopefully learn
about and add this new flag. It gets even more challenging now that
there are laptops with 64 or 128GB of RAM available or coming out soon
which overlaps or exceeds many consumer or business desktops so they may
need to do model detection to figure out if it is a desktop or laptop
and increase the cap accordingly.
I really hope the error message is improved when attempting to
`systemctl hibernate` when there isn't a large enough swap partition,
and I also hope that the Hibernation wiki page(s) are updated to let
folks installing 18.04 know that unless they customize the partitions on
install or resize them after the fact, they will be unable to hibernate
their shiny new laptop and will have to settle for suspending or
completely powering off instead.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto in Ubuntu.
https://bugs.launchpad.net/bugs/1767299
Title:
Ubuntu 18.04 Installer creates swap partition too small
Status in partman-auto package in Ubuntu:
Opinion
Bug description:
Installed Ubuntu 18.04 final release.
The disk is 512 Gigabyte, the RAM is 8 Gigabyte. The installer just
gave me 979 Megabyte of space. I chose LVM to have an encrypted drive.
Here are some details:
free -h
total used free shared buff/cache available
Mem: 7,7G 4,0G 152M 399M 3,6G 3,0G
Swap: 979M 0B 979M
swapon --show
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 980M 0B -2
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda2 during installation
UUID=removed-id /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=removed-id /boot/efi vfat umask=0077 0 1
/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1767299/+subscriptions
More information about the foundations-bugs
mailing list