2016-04-20 11:14 GMT+02:00 Lennart Poettering <[email protected]>:
>
> 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.

Regards,
Michael
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to