mirror of
https://github.com/systemd/systemd
synced 2024-07-23 19:25:39 +00:00
hibernate-resume: actually set HibernateInfo.offset
Follow-up for a628d933cc
This commit is contained in:
parent
b83309da76
commit
b7c1f9eaf4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue