nfs/parse-nfsroot.sh: don't unset netroot, if not nfs

master
Harald Hoyer 2015-03-20 15:48:15 +01:00
parent 636d2d46a5
commit afcc697cb8
1 changed files with 8 additions and 1 deletions

View File

@ -57,7 +57,14 @@ fi


case "$netroot" in case "$netroot" in
/dev/nfs) netroot=nfs;; /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 # LEGACY: root=<server-ip>:/<path
[0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*) [0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
netroot=nfs:$netroot;; netroot=nfs:$netroot;;