]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: offer hibernation only if the kernel image still exists
authorLennart Poettering <lennart@poettering.net>
Wed, 25 Jul 2018 20:19:44 +0000 (22:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Jul 2018 09:01:29 +0000 (11:01 +0200)
commitedda44605f06a41fb86b7ab8128dcf99161d2344
tree670e047476b33588a5c777268497293b9119fc3e
parent7474f15b2da1d034aa3c75ba71644a941d82b2cc
sleep: offer hibernation only if the kernel image still exists

This makes hibernation unavailable if the kernel image we are currently
running was removed. This is supposed to be superficial protection
against hibernating a system we can never return from because the kernel
has been updated and the kernel we currently run is not available
anymore.

We look at a couple of places for the kernel, which should cover all
distributions I know off. Should I have missed a path I am sure people
will quickly notice and we can add more places to check. (or maybe
convince those distros to stick their kernels at a standard place)
src/login/logind-dbus.c
src/shared/sleep-config.c