shared/sleep-config: return a custom message when not enough swap for hibernation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Apr 2018 06:51:06 +0000 (08:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Apr 2018 07:26:14 +0000 (09:26 +0200)
commitb71c9758d131e5f2b38fcbc6393579a4aab3cb82
tree367a46d547e5ea6f16b9aa0e1f79469688557cf9
parentc8c8ee85af35f1e9593a7397cfa289a126dfcb8c
shared/sleep-config: return a custom message when not enough swap for hibernation

$ sudo swapoff -av
swapoff /dev/vda4
$ sudo systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation

Fixes #6729.
src/login/logind-dbus.c
src/shared/sleep-config.c
src/test/test-sleep.c