Repository navigation
os: 1bit-install shows the whole install - a step per line, with progress, logs and a countdown (#710) - #725
Conversation
PR Reviewer Guide 🔍(Review updated until commit 6b755e1)Here are some key observations to aid the review process:
|
…ress, logs and a countdown (#710) Every step is on the screen from the start and flips pending -> running -> done with its elapsed time; the data copy reports MB/total, MB/s and an ETA; the boot files are read back from the disk and sha256'd against the source; the failure path stops on the step with the command's own output. Every line also goes to ttyS0 (the QEMU install gate reads it) and to /data/install.log on the stick and on the new disk. The machine reboots into the installed system after a countdown, unless 1BIT_INSTALL_NO_REBOOT=1.
de4d440 to
8777c38
Compare
d6f220f to
6b755e1
Compare
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At d6f220fb (os/mini/install.sh +251 −33, os/mini/vmtest.sh +4 −2). The gate contract is what I checked first, since this rewrites the install screen.
The QEMU install gate still works against this installer. Three things it depends on:
vmtest.shnow calls1BIT_INSTALL_NO_REBOOT=1 1bit-install …because the installer reboots itself when done — andinstall.sh:366honours exactly that variable (if [ "${1BIT_INSTALL_NO_REBOOT:-0}" = 1 ] || [ ! -e "$SCREEN" ]), so a scripted run cannot restart the VM before the gate reads the installed disk. It also skips the reboot when there is no console at all, which covers the same case from the other side.- the success line the gate matches is unchanged:
install.sh:356still prints1bit OS is installed on $DEV.on stdout (thessh_vmcapture), and:362additionally sendsinstall complete: 1bit OS is installed on $DEV (…)throughlog(). log()writes to/data/install.logand/dev/ttyS0(line 130), which is the transcript the gates read, so the step lines land where the existinggreps look.
INSTALLED appears in this diff only in comments — the string the install gate greps for is printed by the installed boot in init.sh, not here, so its absence from the new screen is correct rather than a dropped marker.
bash -n clean on both files. The screen itself (steps_add/step/failure trap, one line per step with elapsed time, same lines to ttyS0 and the log, stop on the failing step with the command's own output) is the right shape for "give the client visual feedback of the entire install", and the failure path is the important one: it prints the failing command's output rather than exiting bare.
Not verified: the screen's behaviour — repaint, spacing on a real VT, the countdown before reboot — needs the QEMU install gate, which I am not starting while another lane's VM is live on this box. What I could verify statically is the part that would break the gate, and it is intact.
tprs-ready applied; stack note as with its neighbours (#719/#720 still carry this stack).
|
Persistent review updated to latest commit 6b755e1 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
At 6b755e1, rebased after the merges ahead of it. The author patch is byte-identical to the head I reviewed (d6f220fb) — patch-id from the merge base is the same before and after — so my review stands without re-reading: only main arrived in the rebase.
Nothing new to verify. Everything in my earlier verdict on this PR applies at this head unchanged, including what I noted as not-verified-by-me there.
Fixes #710. The installer printed a partition plan and then worked mostly silently.
Every step is now on the screen from the start and flips pending -> running -> done with its elapsed time
(target disk, partition table, ESP, data partition, boot files, their sha256 read back from the disk, the /data
copy,
.installed+ keys, final verification). The data copy shows MB/total, MB/s and an ETA; the failure pathstops on the failing step with the command's own output. Every line also goes to ttyS0 (the QEMU install gate
reads it) and to /data/install.log on the stick and on the new disk. The machine reboots into the installed
system after a 10 s countdown, unless
1BIT_INSTALL_NO_REBOOT=1(which the gate sets).PR-READY.