~jefferyto/ubuntu/+source/initramfs-tools:hibernate-fixes

Last commit made on 2024-06-06
Get this branch:
git clone -b hibernate-fixes https://git.launchpad.net/~jefferyto/ubuntu/+source/initramfs-tools
Only Jeffery To can upload to this branch. If you are Jeffery To please log in for upload directions.

Branch merges

Branch information

Name:
hibernate-fixes
Repository:
lp:~jefferyto/ubuntu/+source/initramfs-tools

Recent commits

b30b658... by Jeffery To

Fix resume failure due to resume=UUID=... in certain cases

If resume= has not been set on the kernel command line, and either:
* RESUME=UUID=... is set in /etc/initramfs-tools/conf.d/resume
* RESUME=auto is set in /etc/initramfs-tool/conf.d/resume and swap is a
  traditional partition (not in LVM)

Then the resume variable will be set to a UUID, which causes the resume
local-premount script to fail as it expects the resume variable to be a
device path.

This moves the UUID handling further down, outside of the parse kernel
command line options loop, to catch these cases.

Fixes: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1769297
Fixes: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1853982
Fixes: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1957194
Signed-off-by: Jeffery To <email address hidden>

addc737... by Jeffery To

Fix hibernate for systemd v255

The resume device should always be written to the kernel, either (a) to
resume, if a suspend image is found, or (b) to enable suspend to that
device later.

More specifically, systemd v255 will not allow hibernate to start if the
resume device has not be set in the kernel.

This changes the resume local-premount script to always write the resume
device to /sys/power/resume so that hibernate can start.

Fixes: 20ec5ca0868a (" - resume: only resume when the partition contains a resume image - Fix resuming a hibernate session from a swapfile")
Fixes: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2057687
Signed-off-by: Jeffery To <email address hidden>

3458184... by Benjamin Drung

0.142ubuntu28 (patches unapplied)

Imported using git-ubuntu import.

31cd6de... by Benjamin Drung

0.142ubuntu27 (patches unapplied)

Imported using git-ubuntu import.

0fa5dc9... by Benjamin Drung

0.142ubuntu26 (patches unapplied)

Imported using git-ubuntu import.

7b9c169... by Benjamin Drung

0.142ubuntu25 (patches unapplied)

Imported using git-ubuntu import.

255aa3c... by Steve Langasek

0.142ubuntu24 (patches unapplied)

Imported using git-ubuntu import.

ab9935b... by Benjamin Drung

0.142ubuntu23 (patches unapplied)

Imported using git-ubuntu import.

0db0ed9... by Benjamin Drung

0.142ubuntu22 (patches unapplied)

Imported using git-ubuntu import.

73c865b... by Benjamin Drung

0.142ubuntu21 (patches unapplied)

Imported using git-ubuntu import.