View previous topic :: View next topic |
Author |
Message |
shadowhunter n00b

Joined: 25 Nov 2003 Posts: 30 Location: Geel, Belgium
|
Posted: Mon Jul 03, 2006 1:15 pm Post subject: Safe to unmerge hotplug? |
|
|
Hi,
Is hotplug needed for some reason?
A newer version of udev (079 or something) is superior to hotplug? Isn't it?
I seem to remind something of it being depreceated...
Do some packages depend on it for some reason?
I have a 2006.0 install
Geert. |
|
Back to top |
|
 |
Kensai Guru


Joined: 09 Mar 2004 Posts: 571 Location: Puerto Rico
|
Posted: Mon Jul 03, 2006 5:10 pm Post subject: |
|
|
I'm not sure I'm right, but udev now handle the hotplug events so yes udev now can do what hotplug did before but, I don't know if it is safe to unmerge. _________________ Gentoo: Gigabyte: nFORCE 2: nVIDIA GeForce 6600: AMD Athlon XP 3200+
Leaving the above specs to immortalize the first system I Installed Gentoo on! |
|
Back to top |
|
 |
chunderbunny Veteran


Joined: 31 May 2004 Posts: 1281 Location: 51°24'27" N, 0°57'15" W
|
Posted: Mon Jul 03, 2006 5:49 pm Post subject: |
|
|
Yes, udev now blocks and supercedes hotplug. It is safe to unmerge hotplug. |
|
Back to top |
|
 |
kdvgent Guru

Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Mon Jul 03, 2006 6:10 pm Post subject: Tried to remove hotplug but some packages seem to need it |
|
|
I followed the advise given and removed hotplug. However the next time I did "emerge -uDav --newuse world", it was indicated that hoplug would be installed again.
I checked:
Quote: | # equery depends hotplug
[ Searching for packages depending on hotplug... ]
media-libs/libgphoto2-2.1.6-r2
sys-apps/hal-0.5.7-r3
net-print/hplip-1.6.6-r1 |
???? |
|
Back to top |
|
 |
idella4 Retired Dev


Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Mon Jul 03, 2006 6:38 pm Post subject: |
|
|
I can't understand someone not mentioning coldplug.
Has it not superceded hotplug in company of udev? _________________ idella4@aus |
|
Back to top |
|
 |
kdvgent Guru

Joined: 29 Sep 2004 Posts: 352 Location: Belgium
|
Posted: Mon Jul 03, 2006 7:27 pm Post subject: coldplug has been removed |
|
|
One of the recent upgrades of udev "said" to remove coldplug. I did and all is going OK.
If I try to install coldplug again, it is blocked by udev:
Quote: | # emerge -pv coldplug
>>> cfg-update-1.8.0-r3 : No new packages have been emerged, checksum index OK...
These are the packages that would be merged, in order:
Calculating dependencies... done!
[blocks B ] >=sys-fs/udev-089 (is blocking sys-apps/coldplug-20040920-r1)
[ebuild N ] sys-apps/coldplug-20040920-r1 0 kB
Total size of downloads: 0 kB
|
|
|
Back to top |
|
 |
idella4 Retired Dev


Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Mon Jul 03, 2006 8:06 pm Post subject: |
|
|
most curious. my system has coldplug and udev. probably platform specific _________________ idella4@aus |
|
Back to top |
|
 |
shadowhunter n00b

Joined: 25 Nov 2003 Posts: 30 Location: Geel, Belgium
|
Posted: Mon Jul 03, 2006 9:51 pm Post subject: |
|
|
what about hotplug-base...
It seems to be a dependency of udev? do you guys have it?
Geert. |
|
Back to top |
|
 |
Beefrum Apprentice


Joined: 23 May 2006 Posts: 234
|
|
Back to top |
|
 |
onlymee n00b

Joined: 27 May 2004 Posts: 24
|
Posted: Sat Jul 08, 2006 11:41 am Post subject: |
|
|
I'm very interested in this too... I also believed that hotplug was some how deprecated by udev, yet hal for example (an inherently udev related pacakge) depends upon hotplug.
Beefrum, are you suggesting that the dependencies of hal are wrong and the sys-apps/hotplug dep should be replaced with sys-apps/hotplug-base? I hunted bugzilla for anything about this but to my surprise turned up nothing so far. Has anybody confirmed that hotplug-base is sufficient? Perhaps a bug should be opened. |
|
Back to top |
|
 |
onlymee n00b

Joined: 27 May 2004 Posts: 24
|
|
Back to top |
|
 |
Emopig Apprentice


Joined: 15 Mar 2006 Posts: 188
|
Posted: Sun Jul 09, 2006 12:02 pm Post subject: |
|
|
I did an "rc-update del coldplug" and after a reboot my eth0 network no longer worked!
After a bit of googling though it appears the coldplug functionality in gentoo's udev has been disabled. Heres a hint:
Code: | ~ $ fgrep -A 2 coldplug /lib/rcscripts/addons/udev-start.sh
# if you want real coldplug (with all modules being loaded for all
# devices in the system), uncomment out the next line.
list="$list $(echo /sys/bus/*/devices/*/uevent)"
|
...I did this and then I no longer need coldplug in my boot runlevel. I'm using udev 087-r1 |
|
Back to top |
|
 |
Beefrum Apprentice


Joined: 23 May 2006 Posts: 234
|
|
Back to top |
|
 |
ats2 Apprentice

Joined: 22 Apr 2005 Posts: 297
|
Posted: Wed Jul 19, 2006 3:42 pm Post subject: |
|
|
Emopig wrote: | I did an "rc-update del coldplug" and after a reboot my eth0 network no longer worked!
After a bit of googling though it appears the coldplug functionality in gentoo's udev has been disabled. Heres a hint:
Code: | ~ $ fgrep -A 2 coldplug /lib/rcscripts/addons/udev-start.sh
# if you want real coldplug (with all modules being loaded for all
# devices in the system), uncomment out the next line.
list="$list $(echo /sys/bus/*/devices/*/uevent)"
|
...I did this and then I no longer need coldplug in my boot runlevel. I'm using udev 087-r1 |
Thanks for the tip! I tried unmerging coldplug first (before reading your message) and it messed up with gome: every time I logged off, I had a blank screen. Then I commented out the line in udev-start.sh as you said and I could remove coldplug from boot runlevel. The question now id: is it safe to unmerge coldplug at all ? |
|
Back to top |
|
 |
ats2 Apprentice

Joined: 22 Apr 2005 Posts: 297
|
Posted: Thu Jul 20, 2006 1:22 am Post subject: |
|
|
Hmmm, wrong.
I had to revert back to rc_coldplug=yes, and comment out the line, and add coldplug to boot runlevel in order to get my net.eth0 to work...
Is there somewhere a good tutorial/explanation on how hald/dbus/hotplug/coldplug/udev work together ? I think this is one of the most annoying things to set up correctly in gentoo. |
|
Back to top |
|
 |
cyberpatrol Apprentice

Joined: 18 Sep 2003 Posts: 161 Location: Germany
|
Posted: Sat Aug 26, 2006 4:47 am Post subject: |
|
|
I hope I can clarify it a bit.
If >=udev-096 - I don't know which was the first version with hotplug and coldplug functionality - is installed you don't need to have installed hotplug and coldplug. I would even say you mustn't have installed hotplug and coldplug because udev on the one hand and hotplug and coldplug on the other hand seem to conflict with each other.
I explained it in bug 143660.
To activate udev's hotplug functionality this has to be set in /etc/conf.d/rc:
To prevent udev from loading every kernel module at boot time this has to be set in /etc/conf.d/rc:
Code: | RC_COLDPLUG="no"
RC_PLUG_SERVICES="!*" |
The modules which shall be loaded at boot time (coldplugged) can be set in /etc/modules.autoload.d/kernel-<kernel version>.
Btw, hotplug-base is a dependency of hotplug as well as of udev, so it mustn't be uninstalled. |
|
Back to top |
|
 |
|