Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396147

Summary: sys-apps/{module-init-tools,kmod} - /etc/modprobe.d/usb-load-ehci-first.conf should use softdep (not install commands)
Product: Gentoo Linux Reporter: Gustavo Sverzut Barbieri <barbieri>
Component: [OLD] Core systemAssignee: udev maintainers <udev-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=441032
Whiteboard:
Package list:
Runtime testing required: ---

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.