installer: keep offline finalizer non-interactive

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent 830c798bde
commit e01c233431
4 changed files with 36 additions and 6 deletions
+16
View File
@@ -87,6 +87,22 @@ catch_errors() {
fi
stop_log_output
if [[ -n ${OMARCHY_CHROOT_FINALIZER:-} ]]; then
show_cursor
{
echo "Omarchy installation stopped inside offline finalizer."
echo "This command halted with exit code $exit_code:"
if [[ -n ${CURRENT_SCRIPT:-} ]]; then
echo "Failed script: $CURRENT_SCRIPT"
else
echo "$BASH_COMMAND"
fi
echo "The live ISO orchestrator will show the visible error screen."
} >&2
exit "$exit_code"
fi
restore_outputs
clear_logo
+5
View File
@@ -1,4 +1,9 @@
start_log_output() {
# Offline ISO installs already have a live dashboard on tty1. The chrooted
# finalizer's stdout/stderr is captured to logs, so this monitor would only
# create noisy feedback in the log and burn CPU.
[[ -n ${OMARCHY_CHROOT_FINALIZER:-} ]] && return 0
local ANSI_SAVE_CURSOR="\033[s"
local ANSI_RESTORE_CURSOR="\033[u"
local ANSI_CLEAR_LINE="\033[2K"