Blame SOURCES/0036-resume-fix-swap-detection-in-hostonly.patch

a56a5e
From ccad388c2578ba3e3539c87268a06c73f42b762f Mon Sep 17 00:00:00 2001
90b079
From: Alexander Tsoy <alexander@tsoy.me>
90b079
Date: Wed, 9 Oct 2013 06:39:46 +0400
90b079
Subject: [PATCH] resume: fix swap detection in hostonly
90b079
90b079
Check for other possible fs types. This fixes swap detection when using
90b079
TuxOnIce kernel.
90b079
90b079
Note that parse-resume.sh generate udev rules with support for
90b079
ID_FS_TYPE=suspend, but we do not include it here, because it is
90b079
libvolume_id thing and host_fs_types is populated using blkid.
90b079
---
90b079
 modules.d/95resume/module-setup.sh | 2 +-
90b079
 1 file changed, 1 insertion(+), 1 deletion(-)
90b079
90b079
diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
1755ca
index 518ebf06..a1ddb460 100755
90b079
--- a/modules.d/95resume/module-setup.sh
90b079
+++ b/modules.d/95resume/module-setup.sh
90b079
@@ -6,7 +6,7 @@ check() {
90b079
     # No point trying to support resume, if no swap partition exist
90b079
     [[ $hostonly ]] || [[ $mount_needs ]] && {
90b079
         for fs in "${host_fs_types[@]}"; do
90b079
-            [[ $fs = swap ]] && return 0
90b079
+            [[ $fs =~ ^(swap|swsuspend|swsupend)$ ]] && return 0
90b079
         done
90b079
         return 255
90b079
     }