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

Lennart Poettering lennart at poettering.net
Thu Apr 21 10:11:38 UTC 2016


On Thu, 21.04.16 02:50, Michael Biebl (mbiebl at gmail.com) wrote:

> 2016-04-21 0:56 GMT+02:00 Michael Biebl <mbiebl at gmail.com>:
> > 2016-04-20 11:14 GMT+02:00 Lennart Poettering <lennart at poettering.net>:
> >>
> >> Here's the heuristics code logind uses to check whether hibernation
> >> shall be considered available or not:
> >>
> >> https://github.com/systemd/systemd/blob/master/src/shared/sleep-config.c#L229
> >>
> >> i.e. it checks that the RAM size is smaller than 0.98 times the
> >> currently unused swap space.
> >
> > Since we already have safety checks in place, would it make sense to
> > include checking /proc/cmdline for resume= being set (at least for
> > MBR)?
> > I know, that the grub configuration might change after the boot, but
> > this would be a rare case.
> 
> On second thought, maybe not such a good idea as this would break
> hibernate on alternate initramfs generators, like initramfs-tools,
> which don't require resume= to be set on the kernel command line.

So, what does initramfs-tools do instead? Does it actively search for
a hibernation partition? And how long does it look for one? Or does it
write the resume partition into the initrd image?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list