From b7c1f9eaf490c65c431af9fd93d974479ab315aa Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 23 Nov 2023 22:20:34 +0800 Subject: [PATCH] hibernate-resume: actually set HibernateInfo.offset Follow-up for a628d933cc67cc8b183dc809ba1451aa5b2996e5 --- src/hibernate-resume/hibernate-resume-config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hibernate-resume/hibernate-resume-config.c b/src/hibernate-resume/hibernate-resume-config.c index 399be73..fe4add2 100644 --- a/src/hibernate-resume/hibernate-resume-config.c +++ b/src/hibernate-resume/hibernate-resume-config.c @@ -255,9 +255,11 @@ int acquire_hibernate_info(HibernateInfo *ret) { if (i.cmdline) { i.device = i.cmdline->device; + i.offset = i.cmdline->offset; i.from_efi = false; } else if (i.efi) { i.device = i.efi->device; + i.offset = i.efi->offset; i.from_efi = true; } else return -ENODEV; -- 2.7.4