summarylogtreecommitdiffstats
path: root/0001-Make-hibernation-test-work-for-swap-files.patch
diff options
context:
space:
mode:
authorTimothée Ravier2014-01-16 21:35:46 +0100
committerTimothée Ravier2014-01-16 21:35:46 +0100
commitca7d932b5e01e07129a1141c8cb23a088522bf49 (patch)
treefbf762bf34b3ec6e723995b68f154d19b45136a1 /0001-Make-hibernation-test-work-for-swap-files.patch
parent2178d8e3efb01da15f7706c75f500be3d3540ec3 (diff)
downloadaur-ca7d932b5e01e07129a1141c8cb23a088522bf49.tar.gz
systemd-selinux 208-10 update
Diffstat (limited to '0001-Make-hibernation-test-work-for-swap-files.patch')
-rw-r--r--0001-Make-hibernation-test-work-for-swap-files.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/0001-Make-hibernation-test-work-for-swap-files.patch b/0001-Make-hibernation-test-work-for-swap-files.patch
new file mode 100644
index 000000000000..e780e01b69b7
--- /dev/null
+++ b/0001-Make-hibernation-test-work-for-swap-files.patch
@@ -0,0 +1,28 @@
+From 0c6f1f4ea4980ff719979d36f10bd6ea3e464c02 Mon Sep 17 00:00:00 2001
+From: Jan Janssen <medhefgo@web.de>
+Date: Thu, 31 Oct 2013 17:22:03 +0100
+Subject: [PATCH] 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
+---
+ src/shared/sleep-config.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
+index d068bfc..2bb0493 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;
+ }
+--
+1.8.5.2
+