Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405827 - sys-kernel/dracut should depend on sys-apps/module-init-tools instead of virtual/modutils
Summary: sys-kernel/dracut should depend on sys-apps/module-init-tools instead of virt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL: http://thread.gmane.org/gmane.linux.k...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-25 22:16 UTC by Dennis Schridde
Modified: 2012-02-28 17:03 UTC (History)
1 user (show)

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


Attachments
Use modinfo instead of modprobe to gather info about modules (dracut-016-modinfo.patch,1.62 KB, patch)
2012-02-25 22:17 UTC, Dennis Schridde
Details | Diff
Make usrmount skip comments in fstab (dracut-016-usrmount-comments.patch,489 bytes, patch)
2012-02-25 22:18 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-02-25 22:16:42 UTC
sys-kernel/dracut (tested with version 016, but likely all other currently released versions also) is unable to use sys-apps/kmod (tested with version 5) for at least two reasons:
1) kmod's modprobe does not implement --show-depends, which results in modules being missing in the initramfs
2) dracut's usrmount chokes on comments in fstab, where the 2nd word is /usr

Attached patches fix both issues. I have submitted them upstream and will place a notification here when upstream has accepted them or otherwise fixed the issue.

Reproducible: Always
Comment 1 Dennis Schridde 2012-02-25 22:17:59 UTC
Created attachment 303229 [details, diff]
Use modinfo instead of modprobe to gather info about modules

P.S: Until the issue is fixed, dracut should not use kmod.
Comment 2 Dennis Schridde 2012-02-25 22:18:25 UTC
Created attachment 303231 [details, diff]
Make usrmount skip comments in fstab
Comment 3 Dennis Schridde 2012-02-25 22:29:33 UTC
(In reply to comment #0)
> sys-kernel/dracut (tested with version 016, but likely all other currently
> released versions also) is unable to use sys-apps/kmod (tested with version 5)
Should be: "likely all other currently released version are also affected"
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-02-27 10:25:36 UTC
Could you test dracut with latest git version of kmod? Starting with commit 	269de2e0bf5011072da2f40f4f2d4023fad696b9 it should work fine.
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-02-27 11:15:03 UTC
I've made Dracut depend on module-init-tools or >kmod-5[tools] explicitly instead of virtual/modutils.
Comment 6 Dennis Schridde 2012-02-27 11:43:50 UTC
Was issue 2 (usrmount) also fixed?

Regarding issue 1: initramfs on vger.kernel.org also suggested that the issue was fixed in a newer kmod. After I wrecked my installation with testing this weekend I am a little bit reluctant to try with another version, but I assume they can be trusted with their assertion about kmod implementing modprobe --show-depends now.
Comment 7 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-02-27 11:53:30 UTC
No, I've missed this. This is separate issue which should be reported as another bug. I've already created one: bug #406023 - attach the second patch there, please.

I've seen you have posted the first patch to initramfs ml already. Could you do this for the second, too?
Comment 8 Dennis Schridde 2012-02-27 12:11:52 UTC
Patch was submitted upstream at http://thread.gmane.org/gmane.linux.kernel.initramfs/2495 and http://thread.gmane.org/gmane.linux.kernel.initramfs/2500 (accidental split caused by replying to the wrong of two copies of the same email)
Comment 9 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-02-27 12:24:10 UTC
Why you've changed status? This bug can be made Fixed wrt to its title.
Comment 10 Dennis Schridde 2012-02-27 12:42:34 UTC
(In reply to comment #9)
> Why you've changed status? This bug can be made Fixed wrt to its title.
I haven't. Must have been an accident or maybe a bug.
Comment 11 Ulenrich 2012-02-28 17:03:05 UTC
I don't know which bug, but I just have said in
https://bugs.gentoo.org/show_bug.cgi?id=402557#c7
kmod-9999 resolves dracut module dependency issues for me