Hibernation can NOT work due to incorrect RESUME=
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Steve Langasek |
Bug Description
In Ubuntu 18.04 I have the below 4 lines, but in Ubuntu 20.04 (dev build) these lines are missing:
--- /usr/share/
+++ /usr/share/
@@ -163,6 +163,10 @@
;;
resume=*)
+ case $RESUME in
+ UUID=*)
+ RESUME=
+ esac
;;
As a result, hibernation can not work: the saved state in the swap partition is lost and no resume happens.
The issue is: when I use the "resume=
DEV=$(readlink "$resume")
DEV=/sys/
if [ -r "$DEV" ]; then
read -r MAJMIN < "$DEV"
fi
if [ -z "$MAJMIN" ]; then
exit 1
fi
Here the 'readlink' will fail, so $DEV is not pointing to a valid device, and then $MAJMIN is empty and
we "exit 1", so no resume can happen!
Not sure why the 4 lines are removed in Ubuntu 20.04...
PS, this is my version info:
root@localhost:~# dpkg-query -s initramfs-
Package: initramfs-
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 271
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Multi-Arch: foreign
Source: initramfs-tools
Version: 0.136ubuntu1
Replaces: initramfs-tools (<< 0.121~)
Depends: busybox-initramfs (>= 1:1.30.
Suggests: bash-completion
Breaks: busybox-initramfs (<< 1:1.30.
Conffiles:
/etc/initramfs
Description: generic modular initramfs generator (core tools)
This package contains the mkinitramfs program that can be used to
create a bootable initramfs for a Linux kernel. The initramfs should
be loaded along with the kernel and is then responsible for mounting
the root filesystem and starting the main init system.
Original-
no longer affects: | initramfs-tools |
Yes, this was an overlooked mismerge from Debian which dropped this special casing from the 'init' implementation, but is still needed in Ubuntu because our resume implementation diverges from Debian's.
This fix has been uploaded to the queue and should be accepted after the 20.04 beta freeze ends.