armbian-next: do basic host checks before config if interactive, or during prepare-host if not

- group basic checks at `check_basic_host()`
This commit is contained in:
Ricardo Pardini
2023-01-17 01:11:43 +01:00
parent f549ddb273
commit ff94b79e60
2 changed files with 17 additions and 6 deletions

View File

@@ -3,6 +3,11 @@
function prepare_and_config_main_build_single() {
LOG_SECTION="config_early_init" do_with_conditional_logging config_early_init
# if interactive, call prepare-host.sh::check_basic_host() early, to avoid disappointments later.
if [[ -t 1 ]]; then
check_basic_host
fi
# those are possibly interactive. interactive (dialog) and logging don't mix, for obvious reasons.
interactive_config_prepare_terminal # init vars used for interactive
config_possibly_interactive_kernel_board