Browse Source

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

master
Harald Hoyer 16 years ago
parent
commit
1c709728ec
  1. 5
      modules.d/40network/parse-ip-opts.sh

5
modules.d/40network/parse-ip-opts.sh

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

# Warn if defaulting to ip=dhcp
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;
fi

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

# 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"

Loading…
Cancel
Save