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
parent
3512925ae2
commit
5686cd41d6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue