]> git.pld-linux.org Git - packages/systemd.git/blame - hibernate-to-file.patch
- x32 rebuild
[packages/systemd.git] / hibernate-to-file.patch
CommitLineData
4c8bb41d
JR
1commit 0c6f1f4ea4980ff719979d36f10bd6ea3e464c02
2Author: Jan Janssen <medhefgo@web.de>
3Date: Thu Oct 31 17:22:03 2013 +0100
4
5 Make hibernation test work for swap files
6
7 Suspend to disk works for swap files too (even if it is located
8 on an ecrypted file system):
9 https://www.kernel.org/doc/Documentation/power/swsusp-and-swap-files.txt
10
11diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
12index d068bfc..2bb0493 100644
13--- a/src/shared/sleep-config.c
14+++ b/src/shared/sleep-config.c
15@@ -206,7 +206,7 @@ static int hibernation_partition_size(size_t *size, size_t *used) {
16 if (!d)
17 return -ENOMEM;
18
19- if (!streq(type, "partition")) {
20+ if (!streq(type, "partition") && !streq(type, "file")) {
21 log_debug("Partition %s has type %s, ignoring.", d, type);
22 continue;
23 }
This page took 0.064124 seconds and 4 git commands to generate.