diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-07-25 22:19:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-07-26 11:01:29 +0200 |
commit | edda44605f06a41fb86b7ab8128dcf99161d2344 (patch) | |
tree | 670e047476b33588a5c777268497293b9119fc3e /src/ac-power | |
parent | sleep-config: eat up errors only after debug logging about them (diff) | |
download | systemd-edda44605f06a41fb86b7ab8128dcf99161d2344.tar.xz systemd-edda44605f06a41fb86b7ab8128dcf99161d2344.zip |
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)
Diffstat (limited to 'src/ac-power')
0 files changed, 0 insertions, 0 deletions