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)