unset netroot before we return (it was set to $root without checkin)

master
Harald Hoyer 2009-07-01 20:53:57 +02:00
parent ada0bc3e5f
commit 14f450cab2
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ fi

case "$netroot" in
/dev/nfs) netroot=nfs;;
/dev/*) return;;
/dev/*) unset netroot; return;;
# LEGACY: root=<server-ip>:/<path
[0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
netroot=nfs:$netroot;;
@ -104,7 +104,7 @@ esac
# Continue if nfs
case "${netroot%%:*}" in
nfs|nfs4|/dev/nfs);;
*) return;;
*) unset netroot; return;;
esac

# Check required arguments