feat(installer): v0.6 ergonomics + polish — 5 quick wins #3

Merged
s8n merged 5 commits from feat/ux-installer-v06-polish into main 2026-05-06 13:47:35 +01:00
Showing only changes of commit 138a04702c - Show all commits

View file

@ -1037,12 +1037,23 @@ run_install() {
--show-output \
-- bash -c 'anaconda --cmdline --kickstart=/run/install/veilor-generated.ks 2>&1 | tee /tmp/anaconda-cmdline.log' || rc=$?
if [[ $rc -eq 0 ]]; then
gum style --foreground 2 --border rounded --margin "1 2" --padding "1 3" \
"✓ Install complete" \
"" \
"System will reboot in 5 seconds." \
"Remove the install media."
sleep 5
# v0.6: 10-second redraw countdown so the operator knows
# exactly when the reboot will fire (and has time to grab
# the USB stick before it boots back into the live ISO).
# Each tick clears + redraws the styled box with the new
# remaining-seconds figure — no fancy in-place repaint, just
# a clean re-render via clear+gum-style which the linux
# fbcon handles without flicker.
local secs
for secs in 10 9 8 7 6 5 4 3 2 1; do
clear
gum style --foreground 2 --border rounded --margin "1 2" --padding "1 3" \
"✓ Install complete" \
"" \
"Rebooting in ${secs}s..." \
"Remove the install media."
sleep 1
done
systemctl reboot
else
prompt_error "Anaconda exited non-zero (status $rc).