End deferred first boot on the finished progress bar

Clearing it for a "Starting Omarchy..." card only flashed another screen
before SDDM took over. The cursor now stays hidden through the handoff and
comes back only on the failure path, where the retry prompt needs it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-08-10 07:38:47 -07:00
co-authored by Claude Opus 5
parent 6d7826d635
commit 2d44ad59be
+9 -7
View File
@@ -1023,10 +1023,14 @@ run_setup() {
sleep 0.5 sleep 0.5
done done
# The cursor comes back only on the failure path, where the retry prompt needs
# it. A clean run keeps it hidden through the last frame and the handoff.
local status=0 local status=0
wait "$worker" || status=$? wait "$worker" || status=$?
printf '%s' "$SHOW_CURSOR" if (( status != 0 )); then
(( status == 0 )) || return "$status" printf '%s' "$SHOW_CURSOR"
return "$status"
fi
# One full-bar frame so the finish doesn't cut in mid-progress. # One full-bar frame so the finish doesn't cut in mid-progress.
echo done >"$STATE_FILE" echo done >"$STATE_FILE"
@@ -1045,11 +1049,9 @@ run_setup() {
# Deferred first boot hands straight off to the display manager: SDDM starts # Deferred first boot hands straight off to the display manager: SDDM starts
# the moment this oneshot exits (Before=display-manager.service) and autologs # the moment this oneshot exits (Before=display-manager.service) and autologs
# in on encrypted installs. No timed celebration screen and no "start" button # in on encrypted installs. No timed celebration screen and no "start" button
# here — that send-off belongs to a direct install, not first-boot setup. # here — that send-off belongs to a direct install, not first-boot setup. The
clear_logo # finished progress bar is the last frame; clearing it for a "Starting
echo # Omarchy..." card would only add a flash of screen before the handoff.
say "Starting Omarchy..."
sleep 1
} }
# A failed first-boot setup must not strand the machine at a user-less login # A failed first-boot setup must not strand the machine at a user-less login