(config: &ostree_ext::oci_spec::image::ImageConfiguration)
| 171 | } |
| 172 | |
| 173 | pub(crate) fn check_bootc_label(config: &ostree_ext::oci_spec::image::ImageConfiguration) { |
| 174 | if let Some(label) = |
| 175 | labels_of_config(config).and_then(|labels| labels.get(crate::metadata::BOOTC_COMPAT_LABEL)) |
| 176 | { |
| 177 | match label.as_str() { |
| 178 | crate::metadata::COMPAT_LABEL_V1 => {} |
| 179 | o => crate::journal::journal_print( |
| 180 | libsystemd::logging::Priority::Warning, |
| 181 | &format!( |
| 182 | "notice: Unknown {} value {}", |
| 183 | crate::metadata::BOOTC_COMPAT_LABEL, |
| 184 | o |
| 185 | ), |
| 186 | ), |
| 187 | } |
| 188 | } else { |
| 189 | crate::journal::journal_print( |
| 190 | libsystemd::logging::Priority::Warning, |
| 191 | &format!( |
| 192 | "notice: Image is missing label: {}", |
| 193 | crate::metadata::BOOTC_COMPAT_LABEL |
| 194 | ), |
| 195 | ) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | fn descriptor_of_progress(p: &ImportProgress) -> &Descriptor { |
| 200 | match p { |
no test coverage detected