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

Bug 95762

Summary: net.eth0 net.lo files swapped
Product: Gentoo Linux Reporter: armin
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: genfool
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description armin 2005-06-11 04:17:19 UTC
the content of net.eth0 net.lo files is swapped. maybe it's etc-update issue.
it was on 4 machines during upgrading baselayout to: 1.11.12-r4

users with one network card may not notice :)

Reproducible: Always
Steps to Reproduce:
1. emerge the new baselayout
2. look at the ._config files
Actual Results:  
network problems

Expected Results:  
normal upgrade
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-11 04:33:21 UTC
What do you mean "content is swapped"? /etc/init.d/net.ethX are only symlinks to
/etc/init.d/net.lo in the new baselayout versions! All configuration is done in
/etc/conf.d/net

* WARNING: You have older net.eth* files in ${ROOT}/etc/init.d/
* They need to be converted to symlinks to net.lo.  If you haven't
* made personal changes to those files, you can update with the
* following command:

* # /bin/ls /etc/init.d/net.eth* | xargs -n1 ln -sfvn net.lo"
Comment 2 armin 2005-06-11 04:40:33 UTC
> What do you mean "content is swapped"? /etc/init.d/net.ethX are only symlinks to
> /etc/init.d/net.lo in the new baselayout versions! All configuration is done in
> /etc/conf.d/net
> 
> * WARNING: You have older net.eth* files in ${ROOT}/etc/init.d/
> * They need to be converted to symlinks to net.lo.  If you haven't
> * made personal changes to those files, you can update with the
> * following command:
> 
> * # /bin/ls /etc/init.d/net.eth* | xargs -n1 ln -sfvn net.lo"
> 

Thanks for clarification:

I of course have different files, because I need arp entries during the start
of network devices. How can I execute a few lines for each eth* device with
/etc/conf.d/net or at least have something like 

  ARP_LINE="-s <IP> <MAC> -i eth1"

for each network device...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-11 04:51:35 UTC
I have no idea what are you trying to achieve but if you are not able to do this
any more with new baselayout, then open a new bug and clarify in more detail

- what are you trying to achieve
- why is this not possible with current net init scripts
- and what enhancements are needed to get the required result. Patches are
welcome of course.

Thanks. 
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2005-06-11 05:22:10 UTC
Armin, look at /etc/conf.d/net.example.  You'll want to read all the way through
it because there is stuff near the bottom that will help you out.  In
particular, you can run commands for devices in /etc/conf.d/net using the
preup/postup functions.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-08-29 11:26:57 UTC
*** Bug 104165 has been marked as a duplicate of this bug. ***