removed warning "No ip= argument(s) for netroot provided..."

master
Harald Hoyer 2009-07-13 14:23:49 +02:00
parent 2a652c0b95
commit 1c709728ec
1 changed files with 2 additions and 3 deletions

View File

@ -45,9 +45,8 @@ getarg ip= >/dev/null && getarg BOOTIF= >/dev/null && \
# No more parsing stuff, BOOTIF says everything # No more parsing stuff, BOOTIF says everything
[ -n "$(getarg BOOTIF)" ] && return [ -n "$(getarg BOOTIF)" ] && return


# Warn if defaulting to ip=dhcp
if [ -n "$netroot" ] && [ -z "$(getarg ip=)" ] ; then if [ -n "$netroot" ] && [ -z "$(getarg ip=)" ] ; then
warn "No ip= argument(s) for netroot provided, defaulting to DHCP" # No ip= argument(s) for netroot provided, defaulting to DHCP
return; return;
fi fi


@ -143,4 +142,4 @@ fi
[ -n "$IFACES" ] && echo $IFACES > /tmp/net.ifaces [ -n "$IFACES" ] && echo $IFACES > /tmp/net.ifaces


# We need a ip= line for the configured bootdev= # We need a ip= line for the configured bootdev=
[ -n "$NEEDBOOTDEV" ] && [ -z "$BOOTDEVOK" ] && die "Bootdev Argument '$BOOTDEV' not found" [ -n "$NEEDBOOTDEV" ] && [ -z "$BOOTDEVOK" ] && die "Bootdev Argument '$BOOTDEV' not found"