Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196026 - EhtX interface doesn't bring up from runscript
Summary: EhtX interface doesn't bring up from runscript
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High critical
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 07:46 UTC by Oleg S. Marin
Modified: 2010-04-01 10:13 UTC (History)
0 users

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 Oleg S. Marin 2007-10-16 07:46:02 UTC
I have two ethernet ports on my mainboard and both drivers compiled as modules.
And after reboot net.eth0 fails to start (eth1 i don't start), but modules are loaded (they loades before net.eth0, whith udev-events).

Reproducible: Always




I have wrote
alias eth0 via-rhine
alias eth1 skge
to the file /etc/modules.d/aliases, and have done update-modules. Manual bringing up of interface with ifconfig failes too, with "No such interface found". But after unloading modules, /etc/init.d/net.eth0 failes to but, manual bringing up of eth0 with ifconfig work fine, and after that /etc/init.d/net.eth0 begin work.
I wrote
blacklist via-rhine
blacklist skge
to the /etc/modprobe.d/blacklists, after that modules ended to load on udev-events on boot-level, but keep on loading on net.eth0 start with same error (No such interface found), and again works only after unloading modules and manual bring up with ifconfig.
Even after I have wrote a very simple runscript, it failes if started by #!/sbin/runscript.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-10-16 10:55:59 UTC
aliasing modules like that is no guarantee that the aliased name will be the one used.

You should make a udev rule for this
http://www.reactivated.net/writing_udev_rules.html#example-netif
Comment 2 Oleg S. Marin 2007-11-29 16:17:02 UTC
Sorry for long time out :( had less time :(
About problem, i don't think it is right solution. I sure theres a bug in baselayout, because even with one ethernet card and well configured aliases in modprobe.conf ifconfig brings up module and interface well ( if module unloaded before), but it loads module with error instead of bringing up of interface when it's called from a verry simple run-script (it's enough to write "#!/sbin/runscript" at begining).
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-12-03 15:46:14 UTC
alias eth0 via-rhine
alias eth1 skge

With via-rhine unloaded and skge unloaded and eth0 and eth1 not reported by `ifconfig -a` do this
modprobe eth1
Now see that it is loaded as eth0 and realise that you probably do need to write a udev rule.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-31 19:09:32 UTC
Does this problem still exist? Please test and reopen if needed.
Comment 5 Oleg S. Marin 2010-04-01 10:13:19 UTC
(In reply to comment #4)
> Does this problem still exist? Please test and reopen if needed.
> 

Sorry for long time that bug was opened, I forgotten about it.
No I have another MB with different ethernet cards, but I sure now it configures with udev rules well.