]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95fstab-sys/mount-sys.sh: removed check for existing /dev
authorHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 14:00:28 +0000 (16:00 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Mar 2012 14:03:00 +0000 (16:03 +0200)
there are a lot of filesystems, which do not need an actual device node

modules.d/95fstab-sys/mount-sys.sh

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