Commit 69b953c
committed
xtask: Add Anaconda liveimg installation test
Add 'cargo xtask anaconda' command that validates bootc containers can
be installed via Anaconda's liveimg kickstart directive. This is an
end-to-end integration test that:
- Exports a bootc container to tar format using 'bootc container export'
- Downloads and caches Anaconda installer ISOs (CentOS Stream 10, Fedora)
- Generates kickstart files with liveimg --url=file:// directive
- Uses virtiofs to share the tar with the VM (avoids HTTP server complexity)
- Boots VM in UEFI mode with proper BLS boot entry generation
- Monitors installation via Anaconda's virtio serial progress channel
- Verifies installation using bcvk (disk inspection) and optionally SSH
The test handles several tricky aspects of bootc + Anaconda integration:
1. BLS entry generation: bootc tar exports don't include Boot Loader
Specification entries (they need root partition UUID). We generate
these in the kickstart %post script.
2. SSH in chroot: The %post script runs in a chroot where services
can't be started, only enabled. We configure sshd to start on
first boot rather than trying to start it during installation.
3. Bootloader installation: Uses bootupctl to install the bootloader
in the Anaconda %post environment.
Usage:
cargo xtask anaconda [--ssh] [--installer-type=centos-stream-10] \
<container-image> <output-disk>
Assisted-by: OpenCode (Claude Sonnet 4)1 parent c9691e3 commit 69b953c
File tree
9 files changed
+3722
-34
lines changed- .github/workflows
- crates
- lib/src
- xtask
- src
9 files changed
+3722
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
270 | 309 | | |
271 | 310 | | |
272 | 311 | | |
273 | | - | |
| 312 | + | |
274 | 313 | | |
275 | 314 | | |
276 | 315 | | |
| |||
279 | 318 | | |
280 | 319 | | |
281 | 320 | | |
282 | | - | |
| 321 | + | |
| 322 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
135 | 150 | | |
136 | 151 | | |
137 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
425 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
1661 | 1666 | | |
1662 | 1667 | | |
1663 | 1668 | | |
| 1669 | + | |
1664 | 1670 | | |
1665 | 1671 | | |
1666 | 1672 | | |
1667 | 1673 | | |
1668 | 1674 | | |
1669 | 1675 | | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1670 | 1679 | | |
1671 | 1680 | | |
1672 | 1681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
0 commit comments