Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88006 - baselayout 1.12.x : /etc/init.d/net.lo uses iproute2 by default and it fails
Summary: baselayout 1.12.x : /etc/init.d/net.lo uses iproute2 by default and it fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-04-05 00:40 UTC by Ahmed Farid
Modified: 2005-04-19 16:10 UTC (History)
0 users

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


Attachments
my .config for love-sources-2.6.12-rc1-r1 + upd01 (.config,30.31 KB, text/plain)
2005-04-05 14:42 UTC, Ahmed Farid
Details
doesn't error when lo already has 127.0.0.1 assigned by the kernel (iproute2.patch,635 bytes, patch)
2005-04-14 02:41 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed Farid 2005-04-05 00:40:41 UTC
for some odd/wrong reason, iproute2 in general (/sbin/ip in my case) depends on CONFIG_NETLINK_DEV, which I didn't enable because it's marked obsolete which caused lo to fail (which is annoying, no 127.0.0.1 heh).. 

possible workaround is changing :
[[ ${iface} == "lo" ]] && modules_force=( "iproute2" "ifconfig" )
to 
[[ ${iface} == "lo" ]] && modules_force=( "ifconfig" "iproute2" )

or patch iproute2 but i'm not aware of any fix.

Reproducible: Always
Steps to Reproduce:
1. disable CONFIG_NETLINK_DEV in your kernel config.
2. reboot with the new kernel and watch lo fail to come up.

Actual Results:  
 * Starting lo 
 *    Bringing up lo 
 *       127.0.0.1/8 
RTNETLINK answers: File exists 

Expected Results:  
 * Starting lo 
 *    Bringing up lo 
 *       127.0.0.1/8                                                                                                         
[ ok ] 
 *    Adding routes 
 *       127.0.0.0/8 ...                                                                                                     
[ ok ] 

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,   
glibc-2.3.4.20050125-r1, 2.6.12-rc1-love1 i686)   
relative packages/versions : 
sys-apps/net-tools-1.60-r11 
sys-apps/baselayout-1.12.0_alpha1-r4 
sys-apps/iproute2-2.6.11.20050310-r1 
sys-devel/gcc-3.4.3.20050110-r1 
sys-kernel/linux-headers-2.6.8.1-r2 
sys-libs/glibc-2.3.4.20050125-r1 
 
I'm betting good money that it's caused by the 2.6.8 headers..
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-04-05 07:38:58 UTC
zcat /proc/config.gz | grep CONFIG_NETLINK_DEV
# CONFIG_NETLINK_DEV is not set

/etc/init.d/net.lo restart
 * WARNING:  you are stopping a boot service.
 * Stopping lo
 *    Loading networking modules for lo
 *       modules: iproute2
 *    Bringing down lo
 *       Shutting down lo ...                                             [ ok ] * Starting lo
 *    Loading networking modules for lo
 *       modules: iproute2
 *          iproute2 provides interface
 *    Bringing up lo
 *       127.0.0.1/8                                                      [ ok ]   *    Adding routes
 *       127.0.0.0/8 ...                                                  [ ok ]

As you can see, it works fine here

Reporter, please test with gentoo-sources-2.6.11-r5. If that fails, attach your kernel config (for gentoo-sources, not love sources) to this bug.
Comment 2 Ahmed Farid 2005-04-05 14:42:15 UTC
Created attachment 55402 [details]
my .config for love-sources-2.6.12-rc1-r1 + upd01

I'm sorry, I can't test with gentoo-sources because I use reiser4, however I
noticed something different in your output.

 *    Loading networking modules for lo
 *	 modules: iproute2
 *	    iproute2 provides interface

I never got that "step" (neither after nor before my changes), are you using an
updated version of baselayout or something? 
mine with iproute2 :
 * Stopping lo
 *    Bringing down lo
 *	 Shutting down lo ...						       
					     [ ok ]
 * Starting lo
 *    Bringing up lo
 *	 127.0.0.1/8
RTNETLINK answers: File exists						       
					     [ !! ]

peace
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-04-05 16:36:45 UTC
To get similar output, add RC_VERBOSE="yes" to /etc/conf.d/rc

You can test reiser4 with gentoo-sources-2.6.11-r5 with the patch at ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.11/ - it applies just fine.

Please test on gentoo-sources-2.6.x
Comment 4 SpanKY gentoo-dev 2005-04-05 16:42:43 UTC
yes, please test with a less retarded kernel
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-04-14 02:41:26 UTC
Created attachment 56239 [details, diff]
doesn't error when lo already has 127.0.0.1 assigned by the kernel

In CVS - will be in baselayout-1.12.0-alpha2
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-04-19 16:10:27 UTC
Fixed in baselayout-1.12.0-alpha2