kernel-modules/module-setup.sh: fix modprobe.d install

if /lib/modprobe.d does not exist, it errors with:
find: `/lib/modprobe.d/': No such file or directory
master
Harald Hoyer 2012-07-23 11:38:36 +02:00
parent 13f77e9fd5
commit b7c8f59fef
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ installkernel() {
install() {
local _f i
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
dracut_install $(find -L /{etc,lib}/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
set -- /{etc,lib}/modprobe.d/*.conf
if [[ -f $1 ]]; then
dracut_install "$@"
fi
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
}