]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "sleep: offer hibernation only if the kernel image still exists"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Dec 2018 10:01:34 +0000 (11:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Dec 2018 17:23:17 +0000 (18:23 +0100)
commit8340b762e4f597e98a72de1385e74b9be04e521d
treebeabe314dc84d4866c53c5264a03174ba55d2272
parent44f52cce9ee9976b465841a811a7a9963947bc7d
Revert "sleep: offer hibernation only if the kernel image still exists"

This reverts commit edda44605f06a41fb86b7ab8128dcf99161d2344.

The kernel explicitly supports resuming with a different kernel than the one
used before hibernation. If this is something that shouldn't be supported, the
place to change this is in the kernel. We shouldn't censor something that this
exclusively in the kernel's domain.

People might be using this to switch kernels without restaring programs, and
we'd break this functionality for them.

Also, even if resuming with a different kernel was a bad idea, we don't really
prevent that with this check, since most users have more than one kernel and
can freely pick a different one from the menu. So this only affected the corner
case where the kernel has been removed, but there is no reason to single it
out.
NEWS
src/login/logind-dbus.c
src/shared/sleep-config.c