[systemd-devel] systemd hibernator generator does not function on default Fedora install

poma pomidorabelisima at gmail.com
Sun Apr 24 20:31:02 UTC 2016


On 20.04.2016 22:42, Chris Murphy wrote:
> On Wed, Apr 20, 2016 at 1:50 PM, Tobias Hunger <tobias.hunger at gmail.com> wrote:

[...]

> Anyway, the most complete solution for BIOS, UEFI, and UEFI Secure
> Boot systems, is fast startups as possible (which helps all kinds of
> use cases not just desktops), and then encourage DE's and app makers
> to support apps that save their own state without users having to
> manually save files, and default to power off in low battery cases.
> 
> I guess opensuse has some patches that aren't upstream yet that
> support signed hibernation images for UEFI Secure Boot?  Maybe there's
> a way forward at some point. But right now I'm just not seeing it.
> There's some kind of brick wall in every direction with hibernation.
> 

:)
"Lacus Hiemalis Edictum" patch-set actually existed for several years.

...
] Command line: BOOT_IMAGE=/vmlinuz-4.5.2-321.fc22.x86_64 ... resume=UUID=12345678-7654-5689-8765-432123456789
] efi: EFI v2.60 by EDK II
] DMI: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
] Secure boot enabled
...
] PM: Checking hibernation image partition UUID=12345678-7654-5689-8765-432123456789
] PM: Hibernation image not present or could not be loaded.
] systemd[1]: Created slice system-systemd\x2dhibernate\x2dresume.slice.
] PM: Hibernation image partition 8:4 present
] PM: Looking for hibernation image.
] PM: Image not found (code -22)
] PM: Hibernation image not present or could not be loaded.
...
] PM: Hibernation mode set to 'shutdown'
] PM: Basic memory bitmaps created
] PM: Preallocating image memory... 
] PM: Avoid snapshot the page of hibernation key.
] done (allocated 136192 pages)
] PM: Allocated 544768 kbytes in 0.06 seconds (9079.46 MB/s)
] PM: Creating hibernation image:
] PM: Avoid snapshot the page of hibernation key.
] PM: Need to copy 135752 pages
] PM: Normal pages needed: 135752 + 1024, available pages: 245848
] PM: Avoid snapshot the page of hibernation key.
  .....
  ...
  .
  ...
  .....
] PM: Image restored successfully.
] PM: Enforce hibernate signature verifying
] PM: Signature verifying pass
] PM: Restored hibernation keys
] PM: Basic memory bitmaps freed
] Restarting tasks ... done.
...

Ref.
Signature verification of hibernate snapshot v2
https://www.spinics.net/lists/kernel/msg2054106.html
https://patchwork.kernel.org/project/LKML/list/?page=791 / 790
v2-01-16-PM-hibernate-define-HMAC-algorithm-and-digest-size-of-hibernation.patch
...
v2-16-16-PM-hibernate-Document-signature-verification-of-hibernate-snapshot.patch

i.e. unified 0001-Signature-verification-of-hibernate-snapshot-v2.patch
within kernel 4.5.2-321.fc22.x86_64.




More information about the systemd-devel mailing list