Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97662 - Bug in udev guide. The guide don't show how to add hotplug/coldplug to runlevels
Summary: Bug in udev guide. The guide don't show how to add hotplug/coldplug to runlevels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-01 14:42 UTC by Luis Medinas (RETIRED)
Modified: 2005-07-02 06:08 UTC (History)
2 users (show)

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


Attachments
patch for udev-guide (udev-guide.xml.patch,788 bytes, patch)
2005-07-01 14:45 UTC, Luis Medinas (RETIRED)
Details | Diff
udev guide patch (udev-guide.xml.patch,785 bytes, patch)
2005-07-01 15:58 UTC, Luis Medinas (RETIRED)
Details | Diff
udev guide patch (udev-guide.xml.patch,1.23 KB, patch)
2005-07-02 04:33 UTC, Luis Medinas (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Medinas (RETIRED) gentoo-dev 2005-07-01 14:42:10 UTC
The guide don't show how to add hotplug and coldplug to runlevels. I wrote a
patch for it i hope it's right.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Luis Medinas (RETIRED) gentoo-dev 2005-07-01 14:45:58 UTC
Created attachment 62432 [details, diff]
patch for udev-guide
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2005-07-01 14:48:20 UTC
thanks to unsolo and hparker that notice this bug.
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-07-01 15:16:29 UTC
seems logical to me
Comment 4 Michiel de Bruijne 2005-07-01 15:48:44 UTC
I think that coldplug should be added to the boot runlevel instead of default runlevel. 
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2005-07-01 15:57:51 UTC
yes you are right... i forgot about that new patch is here
Comment 6 Luis Medinas (RETIRED) gentoo-dev 2005-07-01 15:58:34 UTC
Created attachment 62439 [details, diff]
udev guide patch
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 20:16:39 UTC
Hotplug should not be added to any runlevel, it's dummy initscript that does not
do anything useful at all.

<snip>
pkg_postinst() {
        ewarn "WARNING: The hotplug init script is now gone (dead and burried.)"
        ewarn "WARNING: If you want to load modules for hardware that was already"
        ewarn "WARNING: discovered at boot time, like the old hotplug init script"
        ewarn "WARNING: did, then emerge the coldplug package, and add coldplug to"
        ewarn "WARNING: a runlevel, e.g. # rc-update add coldplug boot"
        echo
</snip>
Comment 8 Luis Medinas (RETIRED) gentoo-dev 2005-07-01 20:21:53 UTC
Well so we should remove that from the handbook too ?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-07-01 20:35:56 UTC
(In reply to comment #8)
> Well so we should remove that from the handbook too ?

Coldplug depends on hotplug anyway, it will be emerged automatically with
coldplug; no need to emerge it separately.

Hotplug installs required scripts for coldplug, but don't add it to any
runlevel, coldplug init script does the job now {if user wants it).
Comment 10 Luis Medinas (RETIRED) gentoo-dev 2005-07-02 04:33:04 UTC
Created attachment 62456 [details, diff]
udev guide patch

Thanks. This patch contains that fix.
Comment 11 Sven Vermeulen (RETIRED) gentoo-dev 2005-07-02 06:08:04 UTC
Thanks, committed to CVS. Same for handbook, btw.