]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfs: fix regex patterns in check()
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Dec 2011 06:10:00 +0000 (14:10 +0800)
committerHarald Hoyer <harald@redhat.com>
Fri, 13 Jan 2012 10:35:49 +0000 (11:35 +0100)
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
modules.d/95nfs/module-setup.sh

index 641d91786bc4d4241b47180e389d9b97db83191c..6778f286e1647703b0c0ab9afc74c3662e31d784 100755 (executable)
@@ -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
     }