mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
move build message below
This commit is contained in:
parent
5339c0c401
commit
62a059daec
1 changed files with 5 additions and 5 deletions
|
@ -32,6 +32,11 @@ _MOD_DIR="/lib/modules/${_KERNELVERSION}"
|
||||||
_ALL_MODS="$(find "${_MOD_DIR}" -name '*.ko*' 2>"${_NO_LOG}")"
|
_ALL_MODS="$(find "${_MOD_DIR}" -name '*.ko*' 2>"${_NO_LOG}")"
|
||||||
_BUILD_DIR="$(_init_rootfs "${_KERNELVERSION}" "${_TARGET_DIR}")" || exit 1
|
_BUILD_DIR="$(_init_rootfs "${_KERNELVERSION}" "${_TARGET_DIR}")" || exit 1
|
||||||
_ROOTFS="${_TARGET_DIR:-${_BUILD_DIR}/root}"
|
_ROOTFS="${_TARGET_DIR:-${_BUILD_DIR}/root}"
|
||||||
|
if (( ${#_HOOKS[*]} == 0 )); then
|
||||||
|
_abort "No hooks found in config file!"
|
||||||
|
fi
|
||||||
|
echo "Using kernel: ${_KERNEL}"
|
||||||
|
echo "Detected kernel version: ${_KERNELVERSION}"
|
||||||
if [[ -n "${_GENERATE_IMAGE}" ]]; then
|
if [[ -n "${_GENERATE_IMAGE}" ]]; then
|
||||||
echo "Starting build: ${_GENERATE_IMAGE}"
|
echo "Starting build: ${_GENERATE_IMAGE}"
|
||||||
elif [[ -n "${_TARGET_DIR}" ]]; then
|
elif [[ -n "${_TARGET_DIR}" ]]; then
|
||||||
|
@ -39,11 +44,6 @@ elif [[ -n "${_TARGET_DIR}" ]]; then
|
||||||
else
|
else
|
||||||
echo "Starting dry run..."
|
echo "Starting dry run..."
|
||||||
fi
|
fi
|
||||||
if (( ${#_HOOKS[*]} == 0 )); then
|
|
||||||
_abort "No hooks found in config file!"
|
|
||||||
fi
|
|
||||||
echo "Using kernel: ${_KERNEL}"
|
|
||||||
echo "Detected kernel version: ${_KERNELVERSION}"
|
|
||||||
_HOOK_COUNT=1
|
_HOOK_COUNT=1
|
||||||
_HOOKS_END_COUNT="$(echo "${_HOOKS[@]}" | wc -w)"
|
_HOOKS_END_COUNT="$(echo "${_HOOKS[@]}" | wc -w)"
|
||||||
if [[ "${_HOOKS_END_COUNT}" -lt 10 ]]; then
|
if [[ "${_HOOKS_END_COUNT}" -lt 10 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue