build initramfs: unclear _mpargs in instmods()
authorJohn Reiser <jreiser@bitwagon.com>
Mon, 29 Aug 2011 21:42:15 +0000 (14:42 -0700)
committerHarald Hoyer <harald@redhat.com>
Tue, 30 Aug 2011 11:58:45 +0000 (13:58 +0200)
commitf4ca564ba67d5821b756727689664604e76d1cdf
tree9317e966044d3cf8bcfa716d64ba7e57b52499e8
parentab55a117e20d0af861e78e1e0b492775f306280d
build initramfs: unclear _mpargs in instmods()

The local variable _mpargs in function instmods() in file dracut-functions
looks peculiar.  The documentation is non-existent, but still ...

First, $_mpargs is not passed to modprobe via for_each_kmod_dep.
This is strange because my guess is that "_mpargs" means
"extra arguments for modprobe".

Second, the leading "--" will be lopped when a leading pathname
is stripped via
_mod=${_mod##*/}
It seems to me that a leading "--" should inhibit modification.

Here's the corresponding patch to current HEAD (from dracut-013.)
dracut-functions