summaryrefslogtreecommitdiff
path: root/dracut-functions
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-08-28 13:28:19 +0200
committerHarald Hoyer <harald@redhat.com>2009-08-28 13:33:57 +0200
commit6568d86aece9a876aab8b480af022e496f1268e5 (patch)
tree6ffc08e754b7dbf562302354aed19be0a4a168ba /dracut-functions
parent3508cc816ed48dbe499bf51efb526c30fb2bbe0e (diff)
instmods(): fixed "instmods =drivers/md"
Diffstat (limited to 'dracut-functions')
-rwxr-xr-xdracut-functions11
1 files changed, 7 insertions, 4 deletions
diff --git a/dracut-functions b/dracut-functions
index 4cc7297..ffb03b7 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -387,8 +387,7 @@ instmods() {
[[ $no_kernel = yes ]] && return
local mod mpargs modpath modname cmd
while (($# > 0)); do
- mod=${1##*/}
- mod=${mod%.ko}
+ mod=${1%.ko}
case $mod in
=*) # This introduces 2 incompatible meanings for =* arguments
# to instmods. We need to decide which one to keep.
@@ -400,12 +399,16 @@ instmods() {
instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*")
fi
;;
- --*) mpargs+=" $mod";;
+ --*)
+ mod=${mod##*/}
+ mpargs+=" $mod";;
i2o_scsi)
# Must never run this diagnostic-only module
shift; continue;
;;
- *) # if we are already installed, skip this module and go on
+ *)
+ mod=${mod##*/}
+ # if we are already installed, skip this module and go on
# to the next one.
[[ -f $initdir/$1 ]] && { shift; continue; }
# If we are building a host-specific initramfs and this