When attempting to add routes (127.0.0.0/8), the usage informations of inet_route are printed. Reproducible: Always Steps to Reproduce: 1. Updating to baselayout-1.12.0_pre11 2. Starting the /etc/init.d/net.lo script 3.
post your /etc/conf.d/net file
I had this happen as well. I believe the problem is with the new baselayout (~x86 version 1.12.0_pre11). The following is the output of /etc/init.d/net.eth0 restart * Caching service dependencies ... [ ok ] * WARNING: you are stopping a boot service. * Stopping lo * Bringing down lo * Shutting down lo ... [ ok ] * Starting lo * Bringing up lo * 127.0.0.1/8 [ ok ] * Adding routes * 127.0.0.0/8 ... Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported [ !! ] My /etc/conf.d/net looks like config_eth0=( "dhcp" ) dhcpcd_eth0="-t 25" dhcp_eth0="release nontp nonis" #config_eth0=( "192.168.10.251 netmask 255.255.255.0 brd 192.168.10.255" ) #routes_eth0=( "default via 192.168.10.1" ) And the error also happens when I uncomment the static lines and comment out all the dhcp-related lines. And when I dropped back to using baselayout-1.12.0_pre10-r1 the error went away
Spanky I do not have a thing in /etc/conf.d/net as i setup network by hand it is a problem in /etc/init.d/net.lo.
I am also affected by this problem. Here is my /etc/conf.d/net config_eth0=( "192.168.1.101 netmask 255.255.255.0" ) routes_eth0=( "default gw 192.168.1.1" )
baselayout-1.12.0_pre11 runs this command in /lib/rcscripts/net.modules.d/ifconfig: # Add a metric if we don't have one [[ ${x} != *" metric "* ]] && x="${x} metric ${metric}" I fixed the error on my PC by commenting out that line, because this command fails with the "inet_route" error mentioned, due to the "metric" part: route add -net 127.0.0.0/8 metric metric_lo dev lo
Guess there is the same problem like in bug #113402. Tried to fix it and there is my diff for in /lib/rcscripts/net.modules.d/ifconfig: #diff -u ifconfig ifconfig.new --- ifconfig 2005-11-23 23:31:40.000000000 +0100 +++ ifconfig.new 2005-11-23 23:32:57.000000000 +0100 @@ -265,6 +265,7 @@ ifconfig_post_start() { local iface="$1" ifvar=$( bash_variable "$1" ) routes x metric mtu cidr metric="metric_${ifvar}" + metric=${!metric} ifconfig_exists "${iface}" || return 0
Fixed in 1.12.0_pre11-r1