hibernate-resume: always clear HibernateLocation if system info matches
authorMike Yuan <me@yhndnzj.com>
Tue, 5 Dec 2023 08:37:36 +0000 (16:37 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 5 Dec 2023 08:52:19 +0000 (16:52 +0800)
commit24ab77c3cd72306f23edef11091feec100603cac
treeaa341478390567c255b5441930bcac35a0926d22
parent1fe536aa37f7f3b2a4155f9c7d6c86abce56d130
hibernate-resume: always clear HibernateLocation if system info matches

Follow-up for a628d933cc67cc8b183dc809ba1451aa5b2996e5

HibernateInfo.from_efi is not actually useful. info.efi is only
set if the system identifier stored in EFI variable matches with
that of the running system, and thus the variable should be cleared
no matter whether resume= is set from kernel cmdline or not.
src/hibernate-resume/hibernate-resume-config.c
src/hibernate-resume/hibernate-resume-config.h
src/hibernate-resume/hibernate-resume.c