Commit 946874c
composefs/status: derive spec from staged deployment when present
The ostree backend derives `host.spec.image` from the staged deployment
first, falling back to booted. This ensures the spec reflects the
desired state after a `bootc switch`.
But the composefs backend on the other hand was only deriving it from
the booted deployment, which meant the spec never reflected a staged
switch.
Fix the composefs logic to match the ostree one.
Heavily AI-guided.
Signed-off-by: Jonathan Lebon <jonathan@jlebon.com>1 parent 8cad0db commit 946874c
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
894 | 893 | | |
895 | 894 | | |
896 | 895 | | |
| |||
908 | 907 | | |
909 | 908 | | |
910 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
911 | 919 | | |
912 | 920 | | |
913 | 921 | | |
| |||
0 commit comments