[systemd-devel] enable/disable swap before/after hibernation

Lukas Pirl systemd at lukas-pirl.de
Fri Jul 29 11:48:13 UTC 2016


> If clients ask logind whether hibernation is available or try to 
> initiate hibernation we check whether swap is available and refuse
> if it isn't. This means if you add the swap only after the
> hibernation was already initiated then this will not be able to
> affect the check anymore.

I expected something like that – thanks for the explanation.

> You can bypass this check by setting the 
> SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK env var for the logind
> service (add a drop-in using Environment= for it).
> 
> See https://github.com/systemd/systemd/pull/3064 and related.

Excellent pointer! Thanks Lennart!



More information about the systemd-devel mailing list