Commit 361eeb7
committed
cfsctl: Fix keyring command and seal for repo-less/config-less usage
Route keyring commands through run_app() before opening a repository,
fixing 'cfsctl keyring add-cert' which doesn't need a repo but was
failing with 'Cannot open composefs repository at /sysroot/composefs'.
Consolidate CLI dispatch: main.rs delegates to cfsctl::run_from_args()
instead of duplicating the dispatch logic.
Fix 'oci seal' to handle OCI images whose ImageConfiguration has
config: None (allowed by the OCI spec) by using unwrap_or_default().
Assisted-by: OpenCode (Claude claude-opus-4-6)1 parent bd959d1 commit 361eeb7
3 files changed
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
| |||
368 | 373 | | |
369 | 374 | | |
370 | 375 | | |
| 376 | + | |
| 377 | + | |
371 | 378 | | |
| 379 | + | |
372 | 380 | | |
373 | 381 | | |
374 | 382 | | |
| |||
1125 | 1133 | | |
1126 | 1134 | | |
1127 | 1135 | | |
1128 | | - | |
1129 | | - | |
| 1136 | + | |
| 1137 | + | |
1130 | 1138 | | |
1131 | 1139 | | |
1132 | 1140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 12 | + | |
23 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments