fix * in config handling

This commit is contained in:
Tobias Powalowski 2023-09-02 22:00:46 +02:00
parent 9be78f999a
commit 30b2910658

View file

@ -187,7 +187,9 @@ fi
if [[ -z "${_KERNEL}" ]]; then if [[ -z "${_KERNEL}" ]]; then
msg "Autodetecting kernel from: /etc/archboot/presets/${_RUNNING_ARCH}" msg "Autodetecting kernel from: /etc/archboot/presets/${_RUNNING_ARCH}"
. /etc/archboot/presets/${_RUNNING_ARCH} . /etc/archboot/presets/${_RUNNING_ARCH}
if [[ ! -f "$(echo "${ALL_kver}")" ]]; then # allow * in config
ALL_kver="$(echo ${ALL_kver})"
if [[ ! -f "${ALL_kver}" ]]; then
die "specified kernel image does not exist!" die "specified kernel image does not exist!"
fi fi
_KERNELVERSION="$(_kver ${ALL_kver})" _KERNELVERSION="$(_kver ${ALL_kver})"