Commit Graph
86 Commits
Author SHA1 Message Date
Willem Vanhulle 795819d5c8 feat: show the kernel's image loading progress while resuming from hibernation
The kernel freezes every process before it loads a hibernated image, so the
screen looked hung for as long as the load took. A drop-in on
systemd-hibernate-resume.service now opens the kernel console just before
resume, draws a band across the middle of tty12 and confines the kernel's
progress lines to it. The running bootvine stops drawing and stops taking the
console back meanwhile, and repaints if no image was restored.
2026-11-02 19:29:04 +01:00
Willem Vanhulle 7bcc384cfe ci: open a release pull request for every unreleased change 2026-10-30 20:09:58 +01:00
Willem Vanhulle 22e77e1340 chore: release v0.1.1 v0.1.1 2026-10-30 20:01:38 +01:00
Willem Vanhulle daaad6771f refactor: keep recordings on an orphan branch 2026-10-30 19:59:46 +01:00
Willem Vanhulle d4bd3b4b76 refactor: read the release environment from the crate build and generate the sample machine apps 2026-10-30 15:46:26 +01:00
Willem Vanhulle 59f2b12cb8 fix: find libsystemd when release-plz verifies the crate before publishing v0.1.0 2026-10-30 15:31:58 +01:00
Willem Vanhulle b01bc2ea18 ci: show the changelog and what merging does in the release pull request 2026-10-30 15:17:26 +01:00
Willem Vanhulle 35f2c900ec ci: release whenever the crate version is unpublished
Codeberg rewrites a merged pull request's head ref to refs/pull/N/head once
its branch is deleted, so release-plz never recognised the merged release
pull request and v0.1.0 was never published.
2026-10-30 15:13:59 +01:00
Willem Vanhulle c5e2e16b67 feat: record every sample machine's boot as an animated WebP
Each sample machine now has a VM check, including new ones for
text-console and scripted-initrd. While a check runs, a recorder takes a
frame every half second through a second QEMU monitor socket, and
record-screencasts encodes the frames into recordings/<machine>.webp with
img2webp, dropping the BIOS frames at other resolutions. The guide shows
each machine's recording in the section it illustrates, replacing the PNG
screenshots. The checks are now named vm-<machine>.
2026-10-30 14:59:10 +01:00
Willem Vanhulle 7e95cbd8e9 feat: show why units failed, with their last journal lines
Failed jobs keep their kind: units that broke or timed out get a failure
panel entry with the reason systemd reports (exit status, signal, timeout,
start limit, status text) and their last journal lines read through
libsystemd. Units that failed only through a dependency are dimmed and left
out of the panel, and units that crash after starting count as failed.

Restructure the repository around this:
- move the library and binary into bootvine/ and the scripted demos into
  their own unpublished scripted-demos crate, with their VHS tapes
- move the crane builds and NixOS module into nix/
- group each sample VM with its check under vm-tests/, adding text-console,
  scripted-initrd, encrypted-volume and failures machines and a vm-failures
  check
- add docs/guide.md walking through the screen with every recording, keep
  one recording in the README, and re-render all recordings
2026-10-30 14:59:10 +01:00
Willem Vanhulle f2544a964a docs: diagrams architecture 2026-10-30 13:27:08 +01:00
Willem Vanhulle a10e205e9b ci: update config 2026-10-25 15:13:54 +01:00
Willem Vanhulle dbe39fb2b4 fix: arm the root switch from signals that arrive with a disconnect 2026-10-25 13:55:27 +01:00
Willem Vanhulle fe4b5d64d2 fix: keep units that finished before a reconnect in the counts 2026-10-25 13:55:27 +01:00
Willem Vanhulle d3fcd6f085 refactor: drop single-use wrappers in the boot model, view and installer 2026-10-25 13:55:27 +01:00
Willem Vanhulle f8f1b54d75 refactor: merge the console into the live desk and shrink the desk trait to what screens differ in 2026-10-25 13:55:26 +01:00
Willem Vanhulle 734988247d refactor: split the bus feed's link from its boot tracker and poll fd streams directly 2026-10-25 13:55:26 +01:00
Willem Vanhulle cba3e404f9 fix: keep watching the boot when the service manager connection drops 2026-10-25 13:55:26 +01:00
release-plz 4710230129 chore: release v0.1.0
Signed-off-by: release-plz <willemvanhulle@protonmail.com>
2026-10-25 11:24:02 +00:00
Willem Vanhulle f0c091ea15 ci: let release-plz skip xtask through its publish = false 2026-10-25 12:20:49 +01:00
Willem Vanhulle c63c6f1d28 feat: show timeout timer 2026-10-25 12:11:21 +01:00
Willem Vanhulle 9fa6e26d52 ci: release to crates.io and Codeberg through a release-plz pull request 2026-10-25 12:03:40 +01:00
Willem Vanhulle 3a61dc9279 chore: set initial version 0.1.0 2026-10-25 12:03:40 +01:00
Willem Vanhulle 1d098dc931 fix: Ubuntu bugs 2026-10-25 12:03:39 +01:00
Willem Vanhulle 3acc577aac feat: move install commands from xtask into clap subcommands 2026-10-25 12:03:39 +01:00
Willem Vanhulle 4dad85473b fix: deal with scripted initrd changes in nixos unstable 2026-10-25 12:03:39 +01:00
Willem Vanhulle 631315ffe1 fix: yield the console once the display manager starts
Since the boot only counted as complete when the default target was
reached, bootvine kept taking its terminal back from a display manager
that started while another unit still held graphical.target. The
StartupFinished signal was never parsed either, so nothing else ended
the watch.
2026-10-24 20:00:29 +02:00
Willem Vanhulle 58bef783cc fix: handover too early 2026-10-21 15:45:24 +02:00
Willem Vanhulle b126596973 fix: animation timeline loops 2026-10-21 15:45:24 +02:00
Willem Vanhulle 0a29c7c88a feat: animate at 60 fps with timers in hundredths and bars that grow by eighths
Frames tick every 16 ms; password checks and the bus's fallback wake-ups keep
their own 100 ms clock. Running units show hundredths, and a running bar's tip
fills in eighths when the console font has the block glyphs. The scripted boot
demo uses about 2% of a core.
2026-10-21 13:24:35 +02:00
Willem Vanhulle a071b2d065 perf: repaint the whole console only when something disturbed it
Console upkeep still runs every second, but a full repaint follows only when it
had to re-quiet the kernel, take the terminal back or noticed a new font, after
reconnecting, and every five seconds as a safety net.
2026-10-21 13:24:35 +02:00
Willem Vanhulle 552d1170ed perf: rebuild the waiting tree only when the boot changed
The screen keeps the projected tree, milestones and tally and rebuilds them
after boot changes, or every 100 ms so finished units still fade on time.
Release, 200 units, under load: a frame from the cached projection costs
30-40% of a full frame (0.35-0.53 ms against 1.2-1.9 ms).
2026-10-21 13:24:35 +02:00
Willem Vanhulle 092ed41ffb perf: await systemd replies instead of blocking the screen
Calls send their message and await the reply on the registered socket while
the other streams keep drawing; signals that arrive meanwhile are queued for
the next receive. Restoring systemd's status output moves to a guard that
reconnects on exit, so it no longer depends on where the feed was suspended.
Status modes are an enum instead of raw strings.
2026-10-21 13:24:34 +02:00
Willem Vanhulle cb600e0f26 feat: print the version with --version 2026-10-21 12:49:34 +02:00
Willem Vanhulle b7e30ec148 ci: add Woodpecker checks, Cachix config and conventional commit hooks 2026-10-21 12:49:34 +02:00
Willem Vanhulle e0169bf9f2 docs: restructure CONTRIBUTING into setup, testing, tasks, style and design 2026-10-21 12:49:34 +02:00
Willem Vanhulle cfcb9bcaa0 docs: describe the stream loop in CONTRIBUTING 2026-10-21 12:49:34 +02:00
Willem Vanhulle 6b055260eb feat: show the demo passphrase and say when an answer was wrong 2026-10-21 12:49:34 +02:00
Willem Vanhulle d0063c2371 refactor: drive the watch loop with async streams in the Elm style
Every source is a stream of ScreenInput values: the systemd bus (resolved into
BootChange values), keys, frame ticks, full repaints, password requests and
SIGTERM. They are merged with stream::select and folded by one owned
WatchScreen, drawing once per ready batch. The live boot and the scripted demo
share the fold and differ only in their console desk. tokio current-thread
replaces poll(2) and signal-hook. Release binary: 1.74 MB -> 1.86 MB.
2026-10-21 12:49:33 +02:00
Willem Vanhulle ba6e934412 perf: reach each sibling once when nesting waiting units
Searching the graph per sibling pair cost O(n^2) searches under a target with
many dependencies. One reachable set per sibling makes the check a lookup.
Release, 200 units: model projection 2.64 ms -> 0.75 ms, whole frame
3.02 ms -> 1.09 ms.
2026-10-21 12:49:33 +02:00
Willem Vanhulle d3ac753fe2 test: measure the cost of one boot frame
Release build, 200 units at 110x40: whole frame median 3.02 ms, of which the
model projection (waiting forest + milestones) takes 2.64 ms.
2026-10-21 12:49:33 +02:00
Willem Vanhulle 3fbc2a7c78 refactor: drive the spinner by time instead of frame count 2026-10-21 12:49:33 +02:00
Willem Vanhulle a82cca2857 build: add tokio and futures for the stream loop 2026-10-21 12:12:50 +02:00
Willem Vanhulle a6737908e0 build: shrink the release binary from 2.82 MB to 1.74 MB
Fat LTO, one codegen unit, opt-level z, and clap without color or suggestions.
2026-10-21 12:12:50 +02:00
Willem Vanhulle 794ca5a086 refactor: reorganise flake, tests and repo tasks 2026-10-21 12:12:49 +02:00
Willem Vanhulle b93147c7a6 refactor: parse systemd strings with serde_plain 2026-10-21 12:12:49 +02:00
Willem Vanhulle 741e6d13bb refactor: parse systemd state strings at the bus boundary 2026-10-21 12:12:49 +02:00
Willem Vanhulle 9812a85443 build: raise MSRV to 1.91 for const Duration::from_mins 2026-10-21 12:12:49 +02:00
Willem Vanhulle 2191a27b82 refactor: group modules by data-flow stage behind a thin main 2026-10-21 12:12:49 +02:00
Willem Vanhulle f9cc94c633 refactor: derive errors with thiserror 2026-10-21 12:12:49 +02:00