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

Bug 47399

Summary: net.eth1 must not be a symlink to net.eth1
Product: [OLD] Docs-user Reporter: Niels Teglsbo <niels>
Component: Gentoo Linux x86 Installation GuideAssignee: Docs Team <docs-team>
Status: RESOLVED DUPLICATE    
Severity: critical CC: cryo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Niels Teglsbo 2004-04-09 17:53:25 UTC
I am reading http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 and I want to make an initscript for eth1.

The document says:

Code Listing 16: Creating extra initscripts

# cd /etc/init.d
# ln -s net.eth0 net.eth1
# rc-update add net.eth1 default

But that results in a net.eth1 that thinks it responsible for eth0:

 lisa init.d # ./net.eth1 start 
  * WARNING:  "net.eth0" has already been started.

A solution is to make it a hardlink instead of a symlink:

ln net.eth0 net.eth1

The problem is also discussed in http://forums.gentoo.org/viewtopic.php?t=131606&highlight=eth1+eth0+already+started where they suggest copying the files.


Reproducible: Always
Steps to Reproduce:
Preconditions: eth0 started
1. cd /etc/init.d
2. ln -s net.eth0 net.eth1
3. ./net.eth1 start

Actual Results:  
  * WARNING:  "net.eth0" has already been started.
Comment 1 SpanKY gentoo-dev 2004-04-09 23:46:56 UTC
update your baselayout

*** This bug has been marked as a duplicate of 29512 ***