mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix * in config handling
This commit is contained in:
parent
9be78f999a
commit
30b2910658
1 changed files with 3 additions and 1 deletions
|
@ -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})"
|
||||||
|
|
Loading…
Reference in a new issue