Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 467366

Summary: after udev upgrade i get error: cannot start xxx as net.eth0 would not start
Product: Gentoo Linux Reporter: svrmarty <svrmarty>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description svrmarty 2013-04-26 17:15:29 UTC
after i've migrated to udev 200 with renaming net.eth0 to enp6s0 two services won't start
one is named(bind), the other one is dhcpd

error: cannot start named as net.eth0 would not start
error: cannot start dhcpd as net.eth0 would not start

there is no more entry with eth0 in /etc/* 

and there is also no comment in migration wiki or some bugs about how to fix this 

Reproducible: Always
Comment 1 svrmarty 2013-04-26 17:17:07 UTC
ok, there are several services which would not start with this error msg.
ssh, squid, samba and so on
Comment 2 Agostino Sarubbo gentoo-dev 2013-04-26 17:33:52 UTC
Did you remove the rules in /etc/udev/ what ls /sys/class/net/ says?
Comment 3 svrmarty 2013-04-26 17:36:01 UTC
as you can see, all rules are gone
dvb ~ # ls -laR /etc/udev/
/etc/udev/:
total 5496
drwxr-xr-x  4 root root    4096 Apr 26 15:47 .
drwxr-xr-x 96 root root    4096 Apr 26 17:37 ..
-r--r--r--  1 root root 5601550 Apr 26 15:47 hwdb.bin
drwxr-xr-x  2 root root    4096 Apr  2 16:28 hwdb.d
drwxr-xr-x  2 root root    4096 Apr 26 16:18 rules.d
-rw-r--r--  1 root root      44 Apr 26 15:47 udev.conf

/etc/udev/hwdb.d:
total 8
drwxr-xr-x 2 root root 4096 Apr  2 16:28 .
drwxr-xr-x 4 root root 4096 Apr 26 15:47 ..

/etc/udev/rules.d:
total 8
drwxr-xr-x 2 root root 4096 Apr 26 16:18 .
drwxr-xr-x 4 root root 4096 Apr 26 15:47 ..
dvb ~ #
Comment 4 svrmarty 2013-04-26 17:36:18 UTC
dvb ~ # ls -la /sys/class/net/
total 0
drwxr-xr-x  2 root root 0 Apr 26  2013 .
drwxr-xr-x 45 root root 0 Apr 26  2013 ..
lrwxrwxrwx  1 root root 0 Apr 26  2013 enp5s0 -> ../../devices/pci0000:00/0000:00:1c.1/0000:05:00.0/net/enp5s0
lrwxrwxrwx  1 root root 0 Apr 26  2013 enp6s0 -> ../../devices/pci0000:00/0000:00:1c.2/0000:06:00.0/net/enp6s0
lrwxrwxrwx  1 root root 0 Apr 26 16:41 enp8s4 -> ../../devices/pci0000:00/0000:00:1e.0/0000:08:04.0/net/enp8s4
lrwxrwxrwx  1 root root 0 Apr 26  2013 lo -> ../../devices/virtual/net/lo
Comment 5 svrmarty 2013-04-26 17:37:33 UTC
after searching  !! 2 hours !! i've found the solution

in  /etc/conf.d/netmount was one line active

rc_need="net"

after changing it to

#rc_need="net"

it works.

seems to be a big impact
Comment 6 Myckel Habets 2013-04-26 17:53:22 UTC
Removing x86, because not a stabilization bug.
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-27 15:29:33 UTC
You may need to replace default by boot, but here's how to do it:

1. rc-update del net.eth0 default
2. rm /etc/init.d/net.eth0
3. ln -s /etc/init.d/net /etc/init.d/net.enp6s0
4. rc-update add net.enp6s0 default

That way the net dependency will be satisfied.