Repository navigation
Commit ed170bc
committed
feat(updater): step lines for the six stages of an install
The factory marked its own steps and then went silent for the minutes the
updater takes - unpacking a rootfs and writing a boot chain looked like a hang
on the terminal, because everything perform_update.sh printed went to the log.
Six lines now: clearing the slot, fetching, unpacking, first boot, kernel and
boot chain, and the slot that came out. They carry the same "==>" marker as
image-factory/create_image.sh and are not indented - tool.sh's nested_step adds
the indent when it lifts a factory line to the terminal, so indenting here
would double it. On a device the marker is a prefix in the journal.
The steps sit in main(), not in the functions, so the functions stay quiet for
the tests that read their output.
Verified by running main() end to end against mocked docker, tar, btrfs, df and
a stand-in rootfs: slot B in, slot A written, fstab with subvol=@os/system-A in
the slot, first-run.sh and install-kernel.sh called with the slot and digest,
exit 0. That path has no test of its own - it is the main() gap the suite
leaves open.
Signed-off-by: Simon Walz <contact@simonwalz.de>1 parent 8e3e911 commit ed170bc
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
| |||
323 | 332 | | |
324 | 333 | | |
325 | 334 | | |
| 335 | + | |
326 | 336 | | |
327 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
328 | 341 | | |
329 | 342 | | |
330 | 343 | | |
| |||
345 | 358 | | |
346 | 359 | | |
347 | 360 | | |
| 361 | + | |
348 | 362 | | |
349 | 363 | | |
350 | 364 | | |
351 | 365 | | |
| 366 | + | |
352 | 367 | | |
353 | 368 | | |
| 369 | + | |
354 | 370 | | |
355 | 371 | | |
356 | 372 | | |
| |||
361 | 377 | | |
362 | 378 | | |
363 | 379 | | |
| 380 | + | |
| 381 | + | |
364 | 382 | | |
365 | 383 | | |
366 | 384 | | |
| |||
0 commit comments