nfs/parse-nfsroot.sh: don't unset netroot, if not nfs
parent
636d2d46a5
commit
afcc697cb8
|
|
@ -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;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue