Blame SOURCES/0255-nfs-parse-nfsroot.sh-don-t-unset-netroot-if-not-nfs.patch

712866
From fe15c6b6cb03f518c79d990b7054792e1d23c7ba Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 20 Mar 2015 15:48:15 +0100
712866
Subject: [PATCH] nfs/parse-nfsroot.sh: don't unset netroot, if not nfs
712866
712866
(cherry picked from commit afcc697cb8c588eef68bb635f790991411209089)
712866
---
712866
 modules.d/95nfs/parse-nfsroot.sh | 9 ++++++++-
712866
 1 file changed, 8 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh
5c6c2a
index 9fc2a8c3..a84cd436 100755
712866
--- a/modules.d/95nfs/parse-nfsroot.sh
712866
+++ b/modules.d/95nfs/parse-nfsroot.sh
712866
@@ -59,7 +59,14 @@ fi
712866
 
712866
 case "$netroot" in
712866
     /dev/nfs) netroot=nfs;;
712866
-    /dev/*) unset netroot; return;;
712866
+    /dev/*)
712866
+        if [ -n "$oldnetroot" ]; then
712866
+            netroot="$oldnetroot"
712866
+        else
712866
+            unset netroot
712866
+        fi
712866
+	return
712866
+	;;
712866
     # LEGACY: root=<server-ip>:/
712866
     [0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
712866
         netroot=nfs:$netroot;;