Activity log for bug #1876570

Date Who What changed Old value New value Message
2020-05-03 11:46:44 Rasmus Bonnedal bug added bug
2020-05-03 11:46:44 Rasmus Bonnedal attachment added resume.patch https://bugs.launchpad.net/bugs/1876570/+attachment/5365684/+files/resume.patch
2020-05-03 12:30:32 Ubuntu Foundations Team Bug Bot tags amd64 apport-bug focal amd64 apport-bug focal patch
2020-05-03 12:30:41 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2020-05-04 09:50:14 Sebastien Bacher bug added subscriber Ubuntu Sponsors Team
2020-05-04 22:13:02 Mathew Hodson initramfs-tools (Ubuntu): importance Undecided Medium
2020-05-05 15:13:42 Dan Streetman bug added subscriber Dan Streetman
2020-05-05 15:17:00 Dan Streetman tags amd64 apport-bug focal patch amd64 apport-bug focal patch sts-sponsor-volunteer
2020-08-28 22:05:40 Mathew Hodson tags amd64 apport-bug focal patch sts-sponsor-volunteer amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume
2021-03-01 17:21:11 Launchpad Janitor initramfs-tools (Ubuntu): status New Confirmed
2021-03-01 17:21:31 Kevin Francis bug added subscriber Kevin Francis
2021-03-18 14:35:56 Dan Streetman description I originally experienced this on Pop!_OS but I have reproduced it on a freshly installed Ubuntu. 1. Ubuntu 20.04 LTS 2. initramfs-tools-core 0.136ubuntu6 3. I expect the system to resume from hibernation when running pm_hibernate 4. The system starts up anew when I try to resume I have setup a swap partition on /dev/vda2 in /etc/fstab. To enable hibernate I added the kernel parameter "resume=/dev/vda2" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run update-grub. From debugging initramfs it tries to follow a symbolic link DEV=$(readlink "$resume") (see /usr/share/initramfs-tools/scripts/local-premount/resume, line 35) which works well when swap is specified with uuid. When swap is specified as a device directly the readlink returns an empty string and the system does not resume from hibernation. To verify this I added the parameter -f to readlink and run "update-initramfs -u". The system now hibernates successfully. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: initramfs-tools 0.136ubuntu6 ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30 Uname: Linux 5.4.0-28-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Sun May 3 13:26:02 2020 InstallationDate: Installed on 2020-05-03 (0 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install) [impact] unable to resume from hibernation when resume= boot param is specified as device path [test case] set up device/partition for swap, e.g. /dev/vda2 add 'resume=/dev/vda2' kernel boot parameter hibernate power system back on; it should resume from /dev/vda2 instead of coldboot [regression potential] any regression would likely result in failure to correctly resume from hibernation, incorrectly attempting to resume from hibernation, or failing to resume from hibernation. [scope] this is needed in b/f/g/h this bug was introduced, ironically, by bug 1644975, which was added in bionic, so this bug doesn't exist in xenial. this code that introduced this bug isn't included in Debian, so no change is needed there. [original description] I originally experienced this on Pop!_OS but I have reproduced it on a freshly installed Ubuntu. 1. Ubuntu 20.04 LTS 2. initramfs-tools-core 0.136ubuntu6 3. I expect the system to resume from hibernation when running pm_hibernate 4. The system starts up anew when I try to resume I have setup a swap partition on /dev/vda2 in /etc/fstab. To enable hibernate I added the kernel parameter "resume=/dev/vda2" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run update-grub. From debugging initramfs it tries to follow a symbolic link DEV=$(readlink "$resume") (see /usr/share/initramfs-tools/scripts/local-premount/resume, line 35) which works well when swap is specified with uuid. When swap is specified as a device directly the readlink returns an empty string and the system does not resume from hibernation. To verify this I added the parameter -f to readlink and run "update-initramfs -u". The system now hibernates successfully. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: initramfs-tools 0.136ubuntu6 ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30 Uname: Linux 5.4.0-28-generic x86_64 ApportVersion: 2.20.11-0ubuntu27 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Sun May 3 13:26:02 2020 InstallationDate: Installed on 2020-05-03 (0 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install)
2021-03-18 14:36:08 Dan Streetman nominated for series Ubuntu Focal
2021-03-18 14:36:08 Dan Streetman bug task added initramfs-tools (Ubuntu Focal)
2021-03-18 14:36:08 Dan Streetman nominated for series Ubuntu Hirsute
2021-03-18 14:36:08 Dan Streetman bug task added initramfs-tools (Ubuntu Hirsute)
2021-03-18 14:36:08 Dan Streetman nominated for series Ubuntu Groovy
2021-03-18 14:36:08 Dan Streetman bug task added initramfs-tools (Ubuntu Groovy)
2021-03-18 14:36:08 Dan Streetman nominated for series Ubuntu Bionic
2021-03-18 14:36:08 Dan Streetman bug task added initramfs-tools (Ubuntu Bionic)
2021-03-18 14:36:15 Dan Streetman initramfs-tools (Ubuntu Hirsute): assignee Dan Streetman (ddstreet)
2021-03-18 14:36:17 Dan Streetman initramfs-tools (Ubuntu Groovy): assignee Dan Streetman (ddstreet)
2021-03-18 14:36:19 Dan Streetman initramfs-tools (Ubuntu Focal): assignee Dan Streetman (ddstreet)
2021-03-18 14:36:21 Dan Streetman initramfs-tools (Ubuntu Bionic): assignee Dan Streetman (ddstreet)
2021-03-18 14:36:23 Dan Streetman initramfs-tools (Ubuntu Groovy): importance Undecided Medium
2021-03-18 14:36:25 Dan Streetman initramfs-tools (Ubuntu Focal): importance Undecided Medium
2021-03-18 14:36:26 Dan Streetman initramfs-tools (Ubuntu Bionic): importance Undecided Medium
2021-03-18 14:36:29 Dan Streetman initramfs-tools (Ubuntu Bionic): status New In Progress
2021-03-18 14:36:31 Dan Streetman initramfs-tools (Ubuntu Focal): status New In Progress
2021-03-18 14:36:32 Dan Streetman initramfs-tools (Ubuntu Groovy): status New In Progress
2021-03-18 14:36:34 Dan Streetman initramfs-tools (Ubuntu Hirsute): status Confirmed In Progress
2021-03-19 09:36:22 Launchpad Janitor initramfs-tools (Ubuntu Hirsute): status In Progress Fix Released
2021-05-11 22:52:37 Brian Murray initramfs-tools (Ubuntu Groovy): status In Progress Fix Committed
2021-05-11 22:52:40 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2021-05-11 22:52:43 Brian Murray bug added subscriber SRU Verification
2021-05-11 22:52:47 Brian Murray tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-groovy
2021-05-11 22:54:54 Brian Murray initramfs-tools (Ubuntu Focal): status In Progress Fix Committed
2021-05-11 22:55:00 Brian Murray tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-groovy amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-focal verification-needed-groovy
2021-05-11 23:03:08 Brian Murray initramfs-tools (Ubuntu Bionic): status In Progress Fix Committed
2021-05-11 23:03:16 Brian Murray tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-focal verification-needed-groovy amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-bionic verification-needed-focal verification-needed-groovy
2021-05-11 23:03:38 Brian Murray removed subscriber Ubuntu Sponsors Team
2021-05-11 23:03:41 Brian Murray removed subscriber Ubuntu Review Team
2021-05-12 12:25:28 Rasmus Bonnedal tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-needed verification-needed-bionic verification-needed-focal verification-needed-groovy amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-groovy verification-needed verification-needed-bionic verification-needed-focal
2021-05-12 13:05:56 Rasmus Bonnedal tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-groovy verification-needed verification-needed-bionic verification-needed-focal amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-focal verification-done-groovy verification-needed verification-needed-bionic
2021-05-12 13:41:50 Rasmus Bonnedal tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-focal verification-done-groovy verification-needed verification-needed-bionic amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-bionic verification-done-focal verification-done-groovy verification-needed
2021-05-13 19:16:11 Dan Streetman tags amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done-bionic verification-done-focal verification-done-groovy verification-needed amd64 apport-bug focal patch sts-sponsor-volunteer suspend-resume verification-done verification-done-bionic verification-done-focal verification-done-groovy
2021-05-19 01:40:22 Chris Halse Rogers removed subscriber Ubuntu Stable Release Updates Team
2021-05-19 01:47:25 Launchpad Janitor initramfs-tools (Ubuntu Bionic): status Fix Committed Fix Released
2021-05-19 01:47:45 Launchpad Janitor initramfs-tools (Ubuntu Focal): status Fix Committed Fix Released
2021-05-19 01:48:03 Launchpad Janitor initramfs-tools (Ubuntu Groovy): status Fix Committed Fix Released