File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 46
46
-v /var/lib/containers:/var/lib/containers \
47
47
localhost/bootupd:latest bootc install to-filesystem --skip-fetch-check \
48
48
--disable-selinux --replace=alongside /target
49
+ # Verify we injected static configs
50
+ jq -re '.["static-configs"].version' /boot/bootupd-state.json
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ pub(crate) fn install(
108
108
109
109
match configs. enabled_with_uuid ( ) {
110
110
Some ( uuid) => {
111
+ let self_meta = crate :: packagesystem:: query_files ( "/" , [ "/usr/bin/bootupctl" ] ) ?;
112
+ state. static_configs = Some ( self_meta) ;
111
113
#[ cfg( any(
112
114
target_arch = "x86_64" ,
113
115
target_arch = "aarch64" ,
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ pub(crate) struct SavedState {
50
50
pub ( crate ) installed : BTreeMap < String , InstalledContent > ,
51
51
/// Maps a component name to an in progress update
52
52
pub ( crate ) pending : Option < BTreeMap < String , ContentMetadata > > ,
53
+ /// If static bootloader configs are enabled, this contains the version
54
+ pub ( crate ) static_configs : Option < ContentMetadata > ,
53
55
}
54
56
55
57
/// The status of an individual component.
You can’t perform that action at this time.
0 commit comments