From: David Dillow Date: Sat, 23 May 2009 02:12:08 +0000 (-0400) Subject: dracut-funtions: fix 'instmods =modname' X-Git-Tag: 0.1~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5686cd41d6f092d36ed4ff2dc51cf40f84c3fef6;p=thirdparty%2Fdracut.git 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 --- diff --git a/dracut-functions b/dracut-functions index 2beaef208..36f1a968e 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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