show used config

This commit is contained in:
Tobias Powalowski 2023-11-12 20:21:09 +01:00
parent d33cc7cbcd
commit a9cea0caf3

View file

@ -14,6 +14,7 @@ _root_check
_parameters "$@"
#shellcheck disable="SC1090"
. "${_CONFIG}" 2>"${_NO_LOG}" || _abort "Failed to read ${_CONFIG} configuration file"
echo "Using config: ${_CONFIG}"
if [[ -z "${_KERNEL}" ]]; then
echo "Trying to autodetect ${_RUNNING_ARCH} kernel..."
[[ "${_RUNNING_ARCH}" == "x86_64" || "${_RUNNING_ARCH}" == "riscv64" ]] && _KERNEL="/usr/lib/modules/*/vmlinuz"