diff --git a/functions/init.sh b/functions/init.sh index 708e3d275..0182f413d 100755 --- a/functions/init.sh +++ b/functions/init.sh @@ -25,6 +25,12 @@ Init_config_data () Read_conffiles $(Common_conffiles) Prepare_config + # Validating config + if [ "${CONFIG_VALIDATED}" != "true" ]; then + Validate_config + export CONFIG_VALIDATED="true" + fi + # Apt v2.0.1 introduced color support, but it needs to be explicitly enabled. # This is done here so that the injection of the option does not get stored in the config file. if [ "${_COLOR_OUT}" = "true" ] && [ "${_COLOR_ERR}" = "true" ]; then diff --git a/scripts/build/build b/scripts/build/build index dcc489618..f908fc91f 100755 --- a/scripts/build/build +++ b/scripts/build/build @@ -48,9 +48,6 @@ fi # Processing arguments and configuration files Init_config_data "${@}" -# Validating config -Validate_config - Echo_message "live-build ${LIVE_BUILD_VERSION}" Echo_message "Building for a ${LB_MODE}/${LB_DISTRIBUTION_BINARY}/${LB_ARCHITECTURE} system"