]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-init.sh: check for file $DRACUT_KERNEL_MODALIASES
authorHarald Hoyer <harald@redhat.com>
Fri, 7 Jul 2017 13:59:31 +0000 (15:59 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 7 Jul 2017 13:59:31 +0000 (15:59 +0200)
and not for the directory

dracut-init.sh

index 253d1c593fbd099588a4b29644c4427293d21c32..e8a705ec76421e6a562ac28117a27cb5e2eb4ec1 100644 (file)
@@ -166,7 +166,7 @@ if ! [[ -x $DRACUT_INSTALL ]]; then
 fi
 
 if [[ $hostonly == "-h" ]]; then
-    if ! [[ $DRACUT_KERNEL_MODALIASES ]] || ! [[ -d "$DRACUT_KERNEL_MODALIASES" ]]; then
+    if ! [[ $DRACUT_KERNEL_MODALIASES ]] || ! [[ -f "$DRACUT_KERNEL_MODALIASES" ]]; then
         export DRACUT_KERNEL_MODALIASES="${DRACUT_TMPDIR}/modaliases"
         $DRACUT_INSTALL ${srcmods:+--kerneldir "$srcmods"} --modalias > "$DRACUT_KERNEL_MODALIASES"
     fi