modprobe broken with recursive deps

Mike Frysinger vapier at gentoo.org
Tue May 5 13:52:35 UTC 2009


On Tuesday 05 May 2009 09:34:31 Timo Teräs wrote:
> Mike Frysinger wrote:
> > On Tuesday 05 May 2009 08:44:39 Timo Teräs wrote:
> >> Mike Frysinger wrote:
> >>> doing `modprobe` on any module that only has a dependency list <=1
> >>> level deep works fine.  as soon as i try to modprobe anything deeper,
> >>> modprobe fails to act recursively.  so lets look at the case of
> >>> `modprobe snd-pcm`
> >>
> >> This was intentional. It speeds up loading time and reduces memory
> >> requirements considerably.
> >>
> >> The proper thing is to have modules.dep to contain full dependency list
> >> on it for each module. The depmod should generate a file like that (if
> >> it doesn't it's a depmod bug). I think module-init-tools depmod does the
> >> same.
> >
> > busybox should mirror whatever module-init-tools is doing.  if it isnt,
> > then it's a bug in busybox, or it should be an optional config option.
>
> Smells like m-i-t changed things. Now it seems to do binary index file
> for modules.dep to speed up things. I suspect for this reason it might
> not do full dependency listing either.

m-i-t tends to change things without documenting much of anything ... they 
really only guarantee m-i-t itself working with itself (down to the specific 
version)

> >> Or did you generate modules.dep with something else?
> >
> > i'm using the depmod.pl part of busybox, so there's a bug in busybox
> > somewhere here
>
> Maybe you generated it with an old busybox depmod? That would explain it.

i did not say busybox's depmod, i said busybox's depmod.pl.  two completely 
different things.  the latter i'm working on updating.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090505/13828567/attachment.pgp>


More information about the busybox mailing list