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

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