diff --git a/dracut.sh b/dracut.sh index 7e4b0602..f748a073 100755 --- a/dracut.sh +++ b/dracut.sh @@ -946,8 +946,8 @@ if [[ -n $add_confdir ]]; then # Check if it exists under $confdir. elif [[ -d $confdir/$add_confdir ]]; then add_confdir="$confdir/$add_confdir" - elif [[ -d $dracutbasdir/dracut.conf.d/$add_confdir ]]; then - add_confdir="$dracutbasdir/dracut.conf.d/$add_confdir" + elif [[ -d $dracutbasedir/dracut.conf.d/$add_confdir ]]; then + add_confdir="$dracutbasedir/dracut.conf.d/$add_confdir" else printf "%s\n" "dracut[F]: Configuration directory '$add_confdir' not found." >&2 exit 1