From b7c8f59fef3a2a36726f5ea988b74ba6bf1da695 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 23 Jul 2012 11:38:36 +0200 Subject: [PATCH] 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 --- modules.d/90kernel-modules/module-setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh index f309de8..5391ed7 100755 --- a/modules.d/90kernel-modules/module-setup.sh +++ b/modules.d/90kernel-modules/module-setup.sh @@ -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 }