]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
unset netroot before we return (it was set to $root without checkin)
authorHarald Hoyer <harald@redhat.com>
Wed, 1 Jul 2009 18:53:57 +0000 (20:53 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Jul 2009 19:32:33 +0000 (21:32 +0200)
modules.d/95nfs/parse-nfsroot.sh

index c1f404f4ba1adef17dc0a755b3e768a4c9ee2cbd..fbbeb91b5edee9dc7a1d09c7b23fadce3a2118af 100755 (executable)
@@ -95,7 +95,7 @@ fi
 
 case "$netroot" in
     /dev/nfs) netroot=nfs;;
-    /dev/*) return;;
+    /dev/*) unset netroot; return;;
 # LEGACY: root=<server-ip>:/<path
     [0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
        netroot=nfs:$netroot;;
@@ -104,7 +104,7 @@ esac
 # Continue if nfs
 case "${netroot%%:*}" in
     nfs|nfs4|/dev/nfs);;
-    *) return;;
+    *) unset netroot; return;;
 esac
 
 # Check required arguments