dracut-funtions: fix 'instmods =modname'

Move srcmods definition into the function, as $kernel isn't defined yet when
dracut-functions is sourced from dracut.

Signed-off-by: David Dillow <dave@thedillows.org>
master
David Dillow 2009-05-22 22:12:08 -04:00 committed by Harald Hoyer
parent 3512925ae2
commit 5686cd41d6
1 changed files with 1 additions and 1 deletions

View File

@ -202,9 +202,9 @@ dracut_install() {
} }


# install modules, and handle installing all their dependencies as well. # install modules, and handle installing all their dependencies as well.
srcmods="/lib/modules/$kernel/"
instmods() { instmods() {
local mod mpargs modpath modname cmd local mod mpargs modpath modname cmd
local srcmods="/lib/modules/$kernel/"
while (($# > 0)); do while (($# > 0)); do
mod=${1%.ko} mod=${1%.ko}
case $mod in case $mod in