From: Alexander Tsoy Date: Wed, 9 Oct 2013 02:39:46 +0000 (+0400) Subject: resume: fix swap detection in hostonly X-Git-Tag: 035~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfdec163f9dfd5e083f2c8a728c476381faa8baa;p=thirdparty%2Fdracut.git resume: fix swap detection in hostonly 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. --- diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh index b6d2c486d..8b3761689 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 }