feat(installer): promote eject-media reminder to its own box
In v0.5 the "Remove the install media" reminder was a single line inside the green success box, and operators on both onyx and the friend's RTX 4080 rig missed it — rebooted into the live ISO and re-ran the installer thinking the install had silently failed. Promote the reminder to its own loud yellow thick-bordered gum-style box stacked directly below the success/countdown box, with three lines of explanation. Renders for the full 10s of the countdown so it stays in the operator's face the entire window.
This commit is contained in:
parent
816fc0ee68
commit
441f7d057f
1 changed files with 25 additions and 9 deletions
|
|
@ -1037,21 +1037,37 @@ run_install() {
|
||||||
--show-output \
|
--show-output \
|
||||||
-- bash -c 'anaconda --cmdline --kickstart=/run/install/veilor-generated.ks 2>&1 | tee /tmp/anaconda-cmdline.log' || rc=$?
|
-- bash -c 'anaconda --cmdline --kickstart=/run/install/veilor-generated.ks 2>&1 | tee /tmp/anaconda-cmdline.log' || rc=$?
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
# v0.6: 10-second redraw countdown so the operator knows
|
# v0.6: split the success screen into THREE stacked boxes.
|
||||||
# exactly when the reboot will fire (and has time to grab
|
#
|
||||||
# the USB stick before it boots back into the live ISO).
|
# 1. Green success box — quiet confirmation.
|
||||||
# Each tick clears + redraws the styled box with the new
|
# 2. Yellow eject box — promoted out of the buried
|
||||||
# remaining-seconds figure — no fancy in-place repaint, just
|
# one-liner the v0.5 success box used. Operators on
|
||||||
# a clean re-render via clear+gum-style which the linux
|
# both onyx and the friend's RTX 4080 rig missed the
|
||||||
# fbcon handles without flicker.
|
# reminder and rebooted into the live ISO instead of
|
||||||
|
# the install. Now it's its own loud thick-bordered
|
||||||
|
# box that sits BELOW the success box and is
|
||||||
|
# impossible to miss.
|
||||||
|
# 3. Reboot countdown — embedded inside the green
|
||||||
|
# success box so the operator can see "complete +
|
||||||
|
# Xs to reboot" at a glance.
|
||||||
|
#
|
||||||
|
# Each tick clears + redraws all three, so the eject-media
|
||||||
|
# box stays in front of the operator for the full 10-second
|
||||||
|
# window and isn't scrolled off by a banner refresh.
|
||||||
local secs
|
local secs
|
||||||
for secs in 10 9 8 7 6 5 4 3 2 1; do
|
for secs in 10 9 8 7 6 5 4 3 2 1; do
|
||||||
clear
|
clear
|
||||||
gum style --foreground 2 --border rounded --margin "1 2" --padding "1 3" \
|
gum style --foreground 2 --border rounded --margin "1 2" --padding "1 3" \
|
||||||
"✓ Install complete" \
|
"✓ Install complete" \
|
||||||
"" \
|
"" \
|
||||||
"Rebooting in ${secs}s..." \
|
"Rebooting in ${secs}s..."
|
||||||
"Remove the install media."
|
gum style --foreground 3 --border thick --margin "0 2" --padding "1 3" \
|
||||||
|
--border-foreground 3 \
|
||||||
|
" Remove the install media NOW " \
|
||||||
|
"" \
|
||||||
|
" Unplug the USB stick / eject the DVD before " \
|
||||||
|
" reboot, otherwise the system will boot back " \
|
||||||
|
" into the live ISO instead of your fresh install. "
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue