Skip to content

Commit

Permalink
kernel-modules: inst modules.builtin if there's no modules.builtin.bin
Browse files Browse the repository at this point in the history
Also report failure if none of them exist.
  • Loading branch information
aidecoe authored and haraldh committed Apr 28, 2011
1 parent 336eb5b commit 64fcb3c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules.d/90kernel-modules/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,14 @@ install() {
dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
inst "$srcmods/modules.builtin.bin" "/lib/modules/$kernel/modules.builtin.bin"

local f

for f in modules.builtin.bin modules.builtin; do
[[ $srcmods/$f ]] && inst "$srcmods/$f" "/lib/modules/$kernel/$f" \
&& break
done || {
dfatal "No modules.builtin.bin and modules.builtin found!"
return 1
}
}

0 comments on commit 64fcb3c

Please sign in to comment.