[Bug 1853982] Re: Resume fails when UUID= syntax used in conf.d/resume
Benjamin Drung
1853982 at bugs.launchpad.net
Thu Jun 6 13:36:04 UTC 2024
** Changed in: initramfs-tools (Ubuntu)
Status: New => Triaged
** Changed in: initramfs-tools (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1853982
Title:
Resume fails when UUID= syntax used in conf.d/resume
Status in initramfs-tools package in Ubuntu:
Triaged
Bug description:
I've having this issue on Bionic, but it appears that Focal still has
this issue (and its probably been there for years). This can easily
be reproduced by starting with a system on which hibernation is
working using the resume=UUID=... kernel parameter. Then create the
file /etc/initramfs-tools/conf.d/resume with contents RESUME=UUID=...
Next regenerate the initrd and remove the resume= kernel parameter.
Now hibernate the machine and when booted back up resume will fail.
This contradicts expected behavior noted in the documentation.
This is because there is a bug on this line
https://git.launchpad.net/ubuntu/+source/initramfs-
tools/tree/scripts/local-premount/resume?h=ubuntu/focal#n35. The
variable resume is of the form UUID=..., but of course readlink
doesn't understand that. I've fixed this by inserting the line
'resume=${DEV}' above line 35.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1853982/+subscriptions
More information about the foundations-bugs
mailing list