Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113378 - error during the launch of the net.lo script
Summary: error during the launch of the net.lo script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 11:03 UTC by Nicolas Vigot
Modified: 2005-11-24 00:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Vigot 2005-11-23 11:03:02 UTC
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.
Comment 1 SpanKY gentoo-dev 2005-11-23 19:47:53 UTC
post your /etc/conf.d/net file
Comment 2 Chris Slycord 2005-11-23 20:47:13 UTC
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
Comment 3 Jory A. Pratt 2005-11-23 21:34:22 UTC
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.
Comment 4 ignoreme 2005-11-23 22:06:53 UTC
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" )
Comment 5 Paul Bredbury 2005-11-23 22:55:42 UTC
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
Comment 6 Ales Havlik 2005-11-24 00:32:29 UTC
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
Comment 7 Roy Marples (RETIRED) gentoo-dev 2005-11-24 00:33:07 UTC
Fixed in 1.12.0_pre11-r1