Browse Source

dracut-init.sh: check for file $DRACUT_KERNEL_MODALIASES

and not for the directory
master
Harald Hoyer 7 years ago
parent
commit
d84f4687c3
  1. 2
      dracut-init.sh

2
dracut-init.sh

@ -166,7 +166,7 @@ if ! [[ -x $DRACUT_INSTALL ]]; then @@ -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

Loading…
Cancel
Save