resume from hibernation broken when resume image is autodetected another case

Bug #1957194 reported by cvl-skubriev
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)

Bug Description

My issue very similar to

I am assuming that the code at about line 162 in `/usr/share/initramfs-tools/init` like that:

                case $RESUME in

Only works if user wants to set resume partition as `UUID=some` at file like `/etc/initramfs-tools/conf.d/resume`. But in the case when initramfs hook resume automatically save `UUID=some` in initrd `conf/conf.d/zz-resume-auto` file it doesn't matter. Including for operate `DEV=$(readlink -f "$resume")` correctly in `/usr/share/initramfs-tools/scripts/local-premount/resume`

Therefore I decide to add similar code to `/usr/share/initramfs-tools/scripts/local-premount/resume` to fix an issue with resuming.

See a patch in attachment.

Tags: patch
Revision history for this message
cvl-skubriev (skubriev) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "resume.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
cvl-skubriev (skubriev) wrote :

What do you think about proposed solution ? May by it's absolutely wrong ?

Revision history for this message
cvl-skubriev (skubriev) wrote :


This problem appears itself if the swap partition is located on a regular partition of disk.
Initramfs hook resume write `RESUME=UUID=someuuid` to the `conf/conf.d/zz-resume-auto`

If the swap partition is on a logical volume (e.g. LVM), then `conf/conf.d/zz-resume-auto` has a variable with a device `RESUME=/dev/commonvolumegroup/swap` and `/usr/share/initramfs-tools/scripts/local-premount/resume` works properly.

This issue applies to both hibernation and hybrid sleep modes. Because hybrid sleep mode is a combination of both modes (S4+S3).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers