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

2016-07-29 Thread Lukas Pirl
> 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

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

2016-07-29 Thread Lennart Poettering
On Thu, 28.07.16 19:25, Lukas Pirl (syst...@lukas-pirl.de) wrote: > Dear list, > > I want to enable/disable the swap partition before/after hibernation. > > However, it seems I cannot get the service to run early enough to avoid > the error: > > Failed to hibernate system via logind: Sleep