Default kernel command line doesn't work with swapfiles

Bug #1750681 reported by Mario Limonciello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Currently hibernating doesn't work in the out of box configuration of Ubuntu which creates a swapfile by default.

Swapfiles are less discoverable than swap partitions from the perspective of initramfs-tools and the kernel.

To use them the following kernel command line options are needed:
resume=
resume_offset=

Resume represents the device that will be resumed from that contains the swapfile.
Resume offset represents the location in the disk that the swapfile is located.

Attached is a patch that will populate these two options as necessary

Tags: patch
Revision history for this message
Mario Limonciello (superm1) wrote :
tags: added: patch
Revision history for this message
Mario Limonciello (superm1) wrote :

Marking this as a duplicate of bug 1760106 as it's really the better way to do this than add more parameters into everyone's default kernel command line.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.