]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: don't init /sys/power/resume if 'resume=' option is missing and EFI is disabled
authorFranck Bui <fbui@suse.com>
Wed, 26 Jul 2023 15:04:10 +0000 (17:04 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 27 Jul 2023 11:30:40 +0000 (12:30 +0100)
commitf1f331a252d22c15f37d03524cce967664358c5c
tree81961b3155af125d8b6c254c8e7907a27d53174e
parent8f766afe9848eaff48d0084051e9c3a1dc01e1cd
sleep: don't init /sys/power/resume if 'resume=' option is missing and EFI is disabled

Otherwise in such case a first `systemctl hibernate` would fail but would still
initialize /sys/power/resume fooling a second `systemctl hibernate` into
believing that 'resume=' is correctly set and can be used by the resume process
to find the swap device to resume from.

Follow-up for #27330.
src/sleep/sleep.c