dracut-funtions: fix 'instmods =modname'
authorDavid Dillow <dave@thedillows.org>
Sat, 23 May 2009 02:12:08 +0000 (22:12 -0400)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 09:51:36 +0000 (11:51 +0200)
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>
dracut-functions

index 2beaef2..36f1a96 100755 (executable)
@@ -202,9 +202,9 @@ dracut_install() {
 }
 
 # install modules, and handle installing all their dependencies as well.
-srcmods="/lib/modules/$kernel/"
 instmods() {
     local mod mpargs modpath modname cmd
+    local srcmods="/lib/modules/$kernel/"
     while (($# > 0)); do
        mod=${1%.ko}
        case $mod in