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
parent
ab2676d291
commit
cfdec163f9
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue