popular demand: bring back KERNEL_CONFIGURE=yes *during image build*

- partially revert 6ef394d95d (thus bring back the TUI/dialog for selecting KERNEL_CONFIGURE=yes/no)
- partially revert d890b418c7 (thus bring back the capacity to config & build image in one go)
- stop after configuring kernel, but only if command is `kernel-config`, not regular image-build KERNEL_CONFIGURE=yes
This commit is contained in:
Ricardo Pardini
2023-05-08 10:36:34 +02:00
parent 83e35b1473
commit e49d91ec40
7 changed files with 34 additions and 9 deletions

View File

@@ -75,8 +75,9 @@ function compile_kernel() {
kernel_config # has it's own logging sections inside
# Stop after configuring kernel.
if [[ "${KERNEL_CONFIGURE}" == yes ]]; then
# Stop after configuring kernel, but only if using a specific CLI command ("kernel-config").
# Normal "KERNEL_CONFIGURE=yes" (during image build) is still allowed.
if [[ "${KERNEL_CONFIGURE}" == yes && "${ARMBIAN_COMMAND}" == "kernel-config" ]]; then
display_alert "Stopping after configuring kernel" "" "cachehit"
return 0
fi