]> git.ipfire.org Git - thirdparty/systemd.git/commit
hibernate-util: introduce hibernation_is_safe 29382/head
authorMike Yuan <me@yhndnzj.com>
Mon, 16 Oct 2023 05:10:01 +0000 (13:10 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 20 Oct 2023 15:22:54 +0000 (23:22 +0800)
commit805deec039e8cfe8d4dedef8d02691aebf88b1bc
tree0a5e315e0e496208baa8ed75f5cfd80ff8d88214
parent596873c10cb300733ed126b65fcc099b3f63598f
hibernate-util: introduce hibernation_is_safe

After 7470b80763ac0f598ca1ef73d44763967119c18d, we refuse
to hibernate if we fail to write HibernateLocation EFI
variable and resume= is not set. Let's teach sleep_supported
to follow the practice too.
src/login/logind-dbus.c
src/shared/hibernate-util.c
src/shared/hibernate-util.h
src/shared/sleep-config.c
src/shared/sleep-config.h