From db17ef6c4ffa41923020b04618fe627d4aa43206 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 7 Jul 2017 15:58:02 +0200 Subject: [PATCH] dracut-init.sh: add the kernel directory to the --modalias generation --- dracut-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-init.sh b/dracut-init.sh index 503c54ea..253d1c59 100644 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -168,7 +168,7 @@ fi if [[ $hostonly == "-h" ]]; then if ! [[ $DRACUT_KERNEL_MODALIASES ]] || ! [[ -d "$DRACUT_KERNEL_MODALIASES" ]]; then export DRACUT_KERNEL_MODALIASES="${DRACUT_TMPDIR}/modaliases" - $DRACUT_INSTALL --modalias > "$DRACUT_KERNEL_MODALIASES" + $DRACUT_INSTALL ${srcmods:+--kerneldir "$srcmods"} --modalias > "$DRACUT_KERNEL_MODALIASES" fi fi