diff --git a/overlay/usr/local/bin/veilor-installer b/overlay/usr/local/bin/veilor-installer index fb1f255..94f7c7b 100644 --- a/overlay/usr/local/bin/veilor-installer +++ b/overlay/usr/local/bin/veilor-installer @@ -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).