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: 042~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afcc697cb8c588eef68bb635f790991411209089;p=thirdparty%2Fdracut.git nfs/parse-nfsroot.sh: don't unset netroot, if not nfs --- diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh index aa126d356..2200cadd5 100755 --- a/modules.d/95nfs/parse-nfsroot.sh +++ b/modules.d/95nfs/parse-nfsroot.sh @@ -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=:/