Activity log for bug #1769297

Date Who What changed Old value New value Message
2018-05-05 04:55:57 Dmitriy Geels bug added bug
2018-05-05 04:57:59 Dmitriy Geels description I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) when resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then read MAJMIN < "$DEV" fi 3) then next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install) I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then         read MAJMIN < "$DEV" fi 3) next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then         exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install)
2018-05-05 05:01:07 Dmitriy Geels description I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then         read MAJMIN < "$DEV" fi 3) next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then         exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install) I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) during boot init script sets 'resume' variable to 'RESUME' value from conf/conf.d/zz-resume-auto, then it executes local-premount scripts including local-premount/resume 3) resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then         read MAJMIN < "$DEV" fi 4) next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then         exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install)
2018-05-05 05:11:26 Dmitriy Geels attachment added resume script with extra debug messages https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1769297/+attachment/5134182/+files/resume
2018-05-05 05:17:40 Dmitriy Geels attachment added init.patch https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1769297/+attachment/5134187/+files/init.patch
2018-05-05 08:39:42 Ubuntu Foundations Team Bug Bot tags amd64 apport-bug bionic amd64 apport-bug bionic patch
2018-05-05 12:44:54 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2018-05-09 15:39:45 Launchpad Janitor initramfs-tools (Ubuntu): status New Confirmed
2018-05-09 17:50:48 Brian Murray tags amd64 apport-bug bionic patch amd64 apport-bug bionic patch regression-release
2018-05-19 03:25:28 Pavel bug added subscriber Pavel
2018-05-21 07:55:49 Kai-Heng Feng bug added subscriber Kai-Heng Feng
2018-09-08 23:16:13 Steve Smith bug added subscriber Steve Smith
2019-02-24 20:53:18 Nick B. bug added subscriber Nick B.
2019-09-20 12:35:14 Dimitri John Ledkov tags amd64 apport-bug bionic patch regression-release amd64 apport-bug bionic patch regression-release rls-ee-incoming
2019-09-26 15:25:59 Dimitri John Ledkov initramfs-tools (Ubuntu): assignee Dimitri John Ledkov (xnox)
2024-06-06 08:21:37 Jeffery To merge proposal linked https://code.launchpad.net/~jefferyto/ubuntu/+source/initramfs-tools/+git/initramfs-tools/+merge/467015
2024-06-06 13:35:28 Benjamin Drung initramfs-tools (Ubuntu): importance Undecided Medium
2024-07-02 11:59:20 Benjamin Drung summary resume from hibernation broken when resume image is autodetected resume from hibernation broken when resume image is autodetected (UUID= syntax used)
2024-07-02 12:04:29 Benjamin Drung initramfs-tools (Ubuntu): status Confirmed In Progress
2024-07-02 12:04:29 Benjamin Drung initramfs-tools (Ubuntu): assignee Dimitri John Ledkov (xnox) Benjamin Drung (bdrung)
2024-07-02 12:05:33 Benjamin Drung nominated for series Ubuntu Noble
2024-07-02 12:05:33 Benjamin Drung bug task added initramfs-tools (Ubuntu Noble)
2024-07-02 12:05:50 Benjamin Drung initramfs-tools (Ubuntu Noble): importance Undecided Medium
2024-07-03 13:17:12 Benjamin Drung initramfs-tools (Ubuntu): status In Progress Fix Committed
2024-07-03 13:32:37 Benjamin Drung description I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) during boot init script sets 'resume' variable to 'RESUME' value from conf/conf.d/zz-resume-auto, then it executes local-premount scripts including local-premount/resume 3) resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then         read MAJMIN < "$DEV" fi 4) next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then         exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install) [ Impact ] I found a reason of non-functioning resume from hibernation when resume partition/file is autodetected by intiramfs hook /usr/share/initramfs-tools/hooks/resume. Here is the scenario: 1) hook /usr/share/initramfs-tools/hooks/resume creates config conf/conf.d/zz-resume-auto saved in initrd image, containing one variable: RESUME=UUID=106238b0-707d-4422-866d-a7534da50702 in my case 2) during boot init script sets 'resume' variable to 'RESUME' value from conf/conf.d/zz-resume-auto, then it executes local-premount scripts including local-premount/resume 3) resuming script local-premount/resume (/usr/share/initramfs-tools/scripts/local-premount/resume) tries to get resume device major-minor numbers by these lines: DEV=$(readlink ${resume}) DEV=/sys/class/block/${DEV##*/}/dev if [ -r "$DEV" ]; then         read MAJMIN < "$DEV" fi 4) next check fails and resume process silently aborts: if [ -z "$MAJMIN" ]; then         exit 1 fi Resuming script fails to get device major-minor because resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- it's not resolved into device path in init script. Commonly mentioned workaround is to explicitly specify kernel parameter resume=UUID=106238b0-707d-4422-866d-a7534da50702 -- only in this case init script resolves it to device path. [ Test Plan ] 1. hibernate: `sudo systemctl hibernate` 2. resume from hibernate 3. `cat /sys/power/resume` should contain the major-minor of the swap [ Other Info ] ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: initramfs-tools 0.130ubuntu3 Uname: Linux 4.16.6-041606-generic x86_64 ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sat May 5 11:32:31 2018 InstallationDate: Installed on 2018-03-27 (38 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install)
2024-07-04 15:45:02 Julian Andres Klode tags amd64 apport-bug bionic patch regression-release rls-ee-incoming amd64 apport-bug bionic patch regression-release
2024-07-04 19:48:29 Launchpad Janitor initramfs-tools (Ubuntu): status Fix Committed Fix Released
2024-07-10 04:52:24 Chris Halse Rogers initramfs-tools (Ubuntu Noble): status New Fix Committed
2024-07-10 04:52:26 Chris Halse Rogers bug added subscriber Ubuntu Stable Release Updates Team
2024-07-10 04:52:32 Chris Halse Rogers bug added subscriber SRU Verification
2024-07-10 04:52:41 Chris Halse Rogers tags amd64 apport-bug bionic patch regression-release amd64 apport-bug bionic patch regression-release verification-needed verification-needed-noble
2024-07-18 13:45:48 Benjamin Drung bug added subscriber Jeffery To