dev's major/minor not captured in /sys/power/resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to configure hibernation on Noble Numbat, systemd-sleep hibernate complains about
"Failed to find location to hibernate to: Invalid argument" caused by a "0:0" entry in /sys/power/resume
Current configuration:
1) Legacy boot configuration (non-UEFI!)
2) Dual swap space configuration (/etc/fstab excerpt for swap partition and file):
UUID=c323a060-
/swap none swap sw,pri=2 0 0
(swap file is the primary and only option for hibernation as partition is too small)
2) resume config in /etc/initramfs-
RESUME=
(blkid: /dev/sda1: UUID="7799882e-
3) Correct grub config:
GRUB_CMDLINE_
Suspect a regression issue with systemd-255 as the issue did *not* appear with Focal Fossal (system-245) and only surfaced after the upgrade to 24.04.
Work-around:
Amend /etc/rc.local (if this is enabled via systemd) with:
"lsblk | fgrep $(basename $(df -P $(fgrep swap /etc/fstab | grep '^/' | cut -d' ' -f1) | grep '^/' | cut -d' ' -f1)) | cut -d' ' -f4 >/sys/power/resume"
Please let me know if more info is required - more than happy to help!
description: | updated |
Please note that the work-around only works with one swap file. Alternatively simply hardcode the device in the above statement.