All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] resume: fix swap detection in hostonly
@ 2013-10-09  2:39 Alexander Tsoy
       [not found] ` <6734e993a6184b487097463179c3dd75357047b2.1381324538.git.alexander-EP/B3+myoZc@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Tsoy @ 2013-10-09  2:39 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Check for other possible fs types. This fixes swap detection when using
TuxOnIce kernel.

Note that parse-resume.sh generate udev rules with support for
ID_FS_TYPE=suspend, but we do not include it here, because it is
libvolume_id thing and host_fs_types is populated using blkid.
---
 modules.d/95resume/module-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
index b6d2c48..8b37616 100755
--- a/modules.d/95resume/module-setup.sh
+++ b/modules.d/95resume/module-setup.sh
@@ -7,7 +7,7 @@ check() {
     # No point trying to support resume, if no swap partition exist
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for fs in "${host_fs_types[@]}"; do
-            [[ $fs = swap ]] && return 0
+            [[ $fs =~ ^(swap|swsuspend|swsupend)$ ]] && return 0
         done
         return 255
     }
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-09 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09  2:39 [PATCH 1/2] resume: fix swap detection in hostonly Alexander Tsoy
     [not found] ` <6734e993a6184b487097463179c3dd75357047b2.1381324538.git.alexander-EP/B3+myoZc@public.gmane.org>
2013-10-09  3:02   ` [PATCH 2/2] resume: remove resume-genrules.sh Alexander Tsoy
2013-10-09 14:22   ` [PATCH 1/2] resume: fix swap detection in hostonly Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.