shared/sleep-config: exclude zram devices from hibernation candidates
authorAndrew Jorgensen <ajorgens@amazon.com>
Wed, 25 Jul 2018 15:06:57 +0000 (08:06 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Jul 2018 08:19:04 +0000 (10:19 +0200)
commit411ae92b407bd7b4549b205ad754bcd0e3dfd81f
tree1050063f5504ef59ca6bfec94aef9bfe82e58a86
parent54fe2ce1b943b55162cc35b28e976c4fbf490dae
shared/sleep-config: exclude zram devices from hibernation candidates

On a host with sufficiently large zram but with no actual swap, logind will
respond to CanHibernate() with yes. With this patch, it will correctly respond
no, unless there are other swap devices to consider.
src/shared/sleep-config.c