From: Cong Wang <xiyou.wangcong@xxxxxxxxx> Signed-off-by: Cong Wang <xiyou.wangcong@xxxxxxxxx> --- modules.d/95nfs/module-setup.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index 641d917..6778f28 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -9,9 +9,9 @@ check() { [[ $hostonly ]] || [[ $mount_needs ]] && { for fs in ${host_fs_types[@]}; do - strstr "$fs" "|nfs" && return 0 - strstr "$fs" "|nfs3" && return 0 - strstr "$fs" "|nfs4" && return 0 + strstr "$fs" "\|nfs" && return 0 + strstr "$fs" "\|nfs3" && return 0 + strstr "$fs" "\|nfs4" && return 0 done return 255 } -- 1.7.7.4 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html