From: Jan Janssen Date: Thu, 31 Oct 2013 16:22:03 +0000 (+0100) Subject: Make hibernation test work for swap files X-Git-Tag: v209~1566 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0c6f1f4ea4980ff719979d36f10bd6ea3e464c02 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 --- diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index d068bfce3..2bb049381 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -206,7 +206,7 @@ static int hibernation_partition_size(size_t *size, size_t *used) { if (!d) return -ENOMEM; - if (!streq(type, "partition")) { + if (!streq(type, "partition") && !streq(type, "file")) { log_debug("Partition %s has type %s, ignoring.", d, type); continue; }