Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70773 - coldplug should start before net
Summary: coldplug should start before net
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
Depends on:
Reported: 2004-11-11 04:07 UTC by Michal Margula
Modified: 2004-11-11 16:04 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Michal Margula 2004-11-11 04:07:57 UTC
Coldplug should contain "before net" line, so it starts before network initialisation. It is required to have network modules properly loaded.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-11 07:26:40 UTC
No it isn't.

It can start the network modules for you, and people use it for that.

What in the script requires network initialized?
Comment 2 Michal Margula 2004-11-11 07:31:22 UTC
I am afraid you didn't understand. It needs to be started BEFORE network initialisation, so it can load modules, which are then used for setting up network!
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-11 12:08:16 UTC
Ah, I see your point.

But the old hotplug.rc file never had that dependancy, so why should
the coldplug.rc file have it?
Comment 4 Michal Margula 2004-11-11 14:26:46 UTC
It had, because previously everything was working fine.

And even if it wasn't there (but it was!) you need to start coldplug before network to have your network card modules in place.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-11 15:01:57 UTC
Again, that dependancy was not present in the hotplug.rc file.

So, how did that work for you then?

Why not just put the modules that you need to have loaded for your hardware
in the modules.autoload directory?  That's the recommend place for them, and
then you don't have to use the coldplug stuff at all.
Comment 6 Michal Margula 2004-11-11 15:47:27 UTC
In that case you don't need hotplug/coldplug at all.

I really can't understand what are cons of doing that (I can't think any of them). 

Typical situation: you have a PC with network card; card gets broken; you replace it with model of your choice, and it works. But currently you need to add it do autoload.d (which is bad place by the way, because proper way of doing things is aliasing - e.g. alias eth0 ne2k-pci).
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-11-11 15:52:57 UTC
Exactly, coldplug is not needed at all in that case.

That's the point.

And if you want to use module aliases, fine, that works too.

But if you _do_ want to use coldplug, and it works for you, great, that's even
better.  That's why the package is there, for users that want it, and for those
few that it will work for.
Comment 8 Michal Margula 2004-11-11 16:04:00 UTC
OK. As you wish. One of ppl on forum recommended "rc-update add coldplug boot", which could resolve that.

Anyway I give up with that bug :D.