Commit 902aa5e
committed
vm: make boot-check work on a QEMU without virglrenderer, and write a real PNG
Two things found by actually running it, which had evidently not happened on this
machine before: QEMU is not in this image and never has been. The vm/ tooling was
written on the old Aurora host, which shipped it, so the gate that SETUP §3 and
DESIGN §9.4 describe as the thing standing between a build and the laptop could
not run at all here. A green build says nothing about whether the next step works.
Installing it is not the whole story either. Homebrew's bottle is built without
virglrenderer, so it offers virtio-vga but not virtio-vga-gl, and the script
failed on the -device line with an error that pointed at nothing useful.
boot-check.sh now checks for qemu up front, and picks the 3D pair when the build
offers it and degrades to 2D with a loud warning when it does not. The fallback
is worth having rather than a hard failure: tuigreet is an fbcon TTY program, so
the whole boot path through greetd is genuinely exercised and the screenshot means
what it says. niri is what is lost — it exits immediately without a render node —
so the warning states plainly that a green 2D run proves the image boots to a
login prompt and nothing more.
Separately, screendump needs an explicit format. Without one it emits a PPM
regardless of the filename, so vm/output/greeter.png has always been a 3.1MB PPM
that no image viewer would open. It is now a 7.1KB PNG.
SETUP §3 gains the prerequisite and a table of what each QEMU actually proves.1 parent 3f6843a commit 902aa5e
2 files changed
Lines changed: 57 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
77 | 97 | | |
78 | 98 | | |
79 | 99 | | |
| |||
89 | 109 | | |
90 | 110 | | |
91 | 111 | | |
92 | | - | |
93 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
94 | 116 | | |
95 | 117 | | |
96 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
40 | 69 | | |
41 | 70 | | |
42 | 71 | | |
| |||
54 | 83 | | |
55 | 84 | | |
56 | 85 | | |
57 | | - | |
| 86 | + | |
58 | 87 | | |
59 | 88 | | |
60 | 89 | | |
| |||
65 | 94 | | |
66 | 95 | | |
67 | 96 | | |
68 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
69 | 100 | | |
70 | 101 | | |
71 | 102 | | |
| |||
0 commit comments