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 directorymaster
parent
13f77e9fd5
commit
b7c8f59fef
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue