[Bug 1957194] [NEW] resume from hibernation broken when resume image is autodetected another case
cvl-skubriev
1957194 at bugs.launchpad.net
Wed Jan 12 16:30:30 UTC 2022
Public bug reported:
My issue very similar to
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1769297
I am assuming that the code at about line 162 in `/usr/share/initramfs-
tools/init` like that:
```
resume=*)
RESUME="${x#resume=}"
case $RESUME in
UUID=*)
RESUME="/dev/disk/by-uuid/${RESUME#UUID=}"
esac
;;
```
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.
** Affects: initramfs-tools (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "resume.patch"
https://bugs.launchpad.net/bugs/1957194/+attachment/5553602/+files/resume.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1957194
Title:
resume from hibernation broken when resume image is autodetected
another case
Status in initramfs-tools package in Ubuntu:
New
Bug description:
My issue very similar to
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1769297
I am assuming that the code at about line 162 in
`/usr/share/initramfs-tools/init` like that:
```
resume=*)
RESUME="${x#resume=}"
case $RESUME in
UUID=*)
RESUME="/dev/disk/by-uuid/${RESUME#UUID=}"
esac
;;
```
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1957194/+subscriptions
More information about the foundations-bugs
mailing list