do not check dev node exist for fstab-sys mounting
authorDave Young <dyoung@redhat.com>
Thu, 2 Feb 2012 08:00:11 +0000 (16:00 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 11:14:22 +0000 (12:14 +0100)
in case nfs mounting do not check if $_dev exist

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/95fstab-sys/mount-sys.sh

index 4de7285..0f660b7 100755 (executable)
@@ -11,7 +11,7 @@ fstab_mount() {
     info "Mounting from $1"
     while read _dev _mp _fs _opts _dump _pass _rest; do
         [ -z "${_dev%%#*}" ] && continue # Skip comment lines
-        if [ ! -e "$_dev" ]; then
+        if [[ ! "$_fs" =~ "nfs" ]] && [ ! -e "$_dev" ]; then
             warn "Device $_dev doesn't exist, skipping mount."
             continue
         fi