]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfs/parse-nfsroot.sh: don't unset netroot, if not nfs
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Mar 2015 14:48:15 +0000 (15:48 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 Mar 2015 14:48:15 +0000 (15:48 +0100)
modules.d/95nfs/parse-nfsroot.sh

index aa126d356dc3049812d294d967970ca88439feb4..2200cadd575548fc1d6fa96b163a79db567c5ff9 100755 (executable)
@@ -57,7 +57,14 @@ fi
 
 case "$netroot" in
     /dev/nfs) netroot=nfs;;
-    /dev/*) unset netroot; return;;
+    /dev/*)
+        if [ -n "$oldnetroot" ]; then
+            netroot="$oldnetroot"
+        else
+            unset netroot
+        fi
+       return
+       ;;
     # LEGACY: root=<server-ip>:/<path
     [0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
         netroot=nfs:$netroot;;