mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-07-07 16:59:34 +03:00
Make hibernation test work for swap files
Suspend to disk works for swap files too (even if it is located on an ecrypted file system): https://www.kernel.org/doc/Documentation/power/swsusp-and-swap-files.txt
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
f49e8bc472
commit
0c6f1f4ea4
@ -206,7 +206,7 @@ static int hibernation_partition_size(size_t *size, size_t *used) {
|
|||||||
if (!d)
|
if (!d)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
if (!streq(type, "partition")) {
|
if (!streq(type, "partition") && !streq(type, "file")) {
|
||||||
log_debug("Partition %s has type %s, ignoring.", d, type);
|
log_debug("Partition %s has type %s, ignoring.", d, type);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user