From: Harald Hoyer Date: Fri, 20 Mar 2015 14:48:15 +0000 (+0100) Subject: nfs/parse-nfsroot.sh: don't unset netroot, if not nfs X-Git-Tag: RHEL-7.2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe15c6b6cb03f518c79d990b7054792e1d23c7ba;p=thirdparty%2Fdracut.git nfs/parse-nfsroot.sh: don't unset netroot, if not nfs (cherry picked from commit afcc697cb8c588eef68bb635f790991411209089) --- diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh index 9fc2a8c32..a84cd4366 100755 --- a/modules.d/95nfs/parse-nfsroot.sh +++ b/modules.d/95nfs/parse-nfsroot.sh @@ -59,7 +59,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=:/