Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396147 - sys-apps/{module-init-tools,kmod} - /etc/modprobe.d/usb-load-ehci-first.conf should use softdep (not install commands)
Summary: sys-apps/{module-init-tools,kmod} - /etc/modprobe.d/usb-load-ehci-first.conf ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-26 22:44 UTC by Gustavo Sverzut Barbieri
Modified: 2012-11-03 04:53 UTC (History)
1 user (show)

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 Gustavo Sverzut Barbieri 2011-12-26 22:44:28 UTC
/etc/modprobe.d/usb-load-ehci-first.conf does a nasty thing to load ehci before uhci/ohci: modprobe's install command.

The use of install command is not recommended, even more for this use. Instead one should use the "softdep" configuration option, allowing the dependency to be handled at the same process/run as modprobe, not requiring 2 extra execution of it. These lines should do it:

softdep ohci_hcd pre: ehci_hcd
softdep uhci_hcd pre: ehci_hcd


Reproducible: Always
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-27 03:48:43 UTC
@vapier:
Looks good to me, but can you eyeball it before I commit?
Comment 2 SpanKY gentoo-dev 2012-01-02 19:53:25 UTC
looks fine to me
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-10-20 09:24:47 UTC
This bug is now in kmod too... :/
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-10-20 09:33:54 UTC
+*module-init-tools-3.16-r2 (20 Oct 2012)
+
+  20 Oct 2012; Samuli Suominen <ssuominen@gentoo.org>
+  +module-init-tools-3.16-r2.ebuild:
+  Convert from modprobe install to softdep wrt #396147 by Gustavo Sverzut
+  Barbieri

+*kmod-10-r2 (20 Oct 2012)
+
+  20 Oct 2012; Samuli Suominen <ssuominen@gentoo.org> +kmod-10-r2.ebuild,
+  kmod-9999.ebuild:
+  Convert from modprobe install to softdep wrt #396147 by Gustavo Sverzut
+  Barbieri

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?r1=1.34&r2=1.35

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-10-r2.ebuild?rev=1.1&content-type=text/plain

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.16-r2.ebuild?rev=1.1&content-type=text/plain

Did also for module-init-tools since some silly people are stubornly clinging on dead udev.