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.
master
Alexander Tsoy 2013-10-09 06:39:46 +04:00 committed by Harald Hoyer
parent ab2676d291
commit cfdec163f9
1 changed files with 1 additions and 1 deletions

View File

@ -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
}