Commit 4f3055d
committed
unified-storage: Wire composefs-first pull pipeline into ostree deploy path
Add an end-to-end unified storage path for the ostree backend on reflink
filesystems. When the composefs repo is present and unified storage has been
enabled (via `bootc image set-unified`), `pull_auto` now routes through
`pull_via_composefs_unified` which:
1. Pulls the image into bootc-owned containers-storage via `pull_composefs_unified`
(zero-copy reflinks from the registry blobs).
2. Synthesizes an ostree commit from the composefs repo via
`import_from_composefs_repo` + FICLONE, marking it
META_COMPOSEFS_SYNTHESIZED so downstream code knows no per-layer blob refs
exist.
Unified storage mode is tracked by a new flag file
`/sysroot/composefs/bootc.json` (BootcRepoMeta), written atomically on the
first successful set-unified call and read cheaply on every pull_auto to
decide which path to take. This avoids the previous heuristic that checked
per-image presence in containers-storage and broke across `bootc switch` to a
new image reference.
The old ostree-native unified pull path (new_importer_with_config /
check_disk_space_unified / prepare_for_pull_unified / pull_unified) is
removed — it was dead code since the composefs pipeline was introduced.
`bootc image copy-to-storage` is fixed for synthesized commits: because the
synthesized ostree commit carries no per-layer blob refs,
`ostree_ext::container::store::export()` would error out with "Refspec not
found". `push_entrypoint` now detects META_COMPOSEFS_SYNTHESIZED on the
resolved commit, reads the manifest and config from the commit metadata, and
delegates to the composefs layer-streaming export path instead.
The composefs export helper (`export_repo_to_image`) is refactored: the
streaming core is extracted into `export_composefs_to_dest` so it can be
called from both the composefs-boot and ostree-boot code paths.
A new TMT plan (plan-44-readonly-unified) onboards a system to unified
storage and then runs the full readonly test suite against it.
Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 9bcabc1 commit 4f3055d
12 files changed
Lines changed: 1523 additions & 53 deletions
File tree
- crates
- lib/src
- bootc_composefs
- ostree-ext
- src/container
- tests/it
- docs/src
- tmt
- plans
- tests
- booted
- readonly
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 31 | | |
49 | 32 | | |
50 | 33 | | |
| |||
54 | 37 | | |
55 | 38 | | |
56 | 39 | | |
57 | | - | |
| 40 | + | |
58 | 41 | | |
59 | 42 | | |
60 | 43 | | |
| |||
77 | 60 | | |
78 | 61 | | |
79 | 62 | | |
80 | | - | |
| 63 | + | |
81 | 64 | | |
82 | 65 | | |
83 | 66 | | |
| |||
113 | 96 | | |
114 | 97 | | |
115 | 98 | | |
116 | | - | |
| 99 | + | |
117 | 100 | | |
118 | 101 | | |
119 | 102 | | |
| |||
196 | 179 | | |
197 | 180 | | |
198 | 181 | | |
199 | | - | |
| 182 | + | |
200 | 183 | | |
201 | 184 | | |
202 | 185 | | |
| |||
208 | 191 | | |
209 | 192 | | |
210 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
238 | 284 | | |
239 | 285 | | |
240 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
436 | 439 | | |
437 | 440 | | |
438 | 441 | | |
| |||
0 commit comments