sleep: Add debug feature to bypass hibernation memory checks. (#3064)
authorVittorio G (VittGam) <github@vittgam.net>
Tue, 19 Apr 2016 09:18:18 +0000 (11:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Apr 2016 09:18:18 +0000 (11:18 +0200)
commit490d20e65dd85628f910299a3925bbff466b2e74
treec4139eacf8121a95a4b4b3748ac248818e0757fe
parent673fca32be277e6b73ed5c114768e4c64370e16e
sleep: Add debug feature to bypass hibernation memory checks. (#3064)

This new feature bypasses checking if a swap partition is mounted
or if there is enough swap space available for hibernation to
succeed.

This can be useful when a system with a Solid State Disk (SSD)
has no normal swap partition or file configured, and a custom
systemd unit is used to mount a swap file just before hibernating
and unmount it just after resuming.

Signed-off-by: Vittorio Gambaletta <git-systemd@vittgam.net>
src/shared/sleep-config.c