Skip to content

Commit f9de0fd

Browse files
bios: Don't bail out if grub2-install is not present
Instead of making it a fatal error, just make the component to be skipped. This allows to generate the update metadata for other components, instead of failing due not being able to generate the metadata for BIOS component.
1 parent 81edbae commit f9de0fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bios.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ impl Component for Bios {
130130
fn generate_update_metadata(&self, sysroot_path: &str) -> Result<Option<ContentMetadata>> {
131131
let grub_install = Path::new(sysroot_path).join(GRUB_BIN);
132132
if !grub_install.exists() {
133-
bail!("Failed to find {:?}", grub_install);
133+
println!("Failed to find {:?}", grub_install);
134+
return Ok(None);
134135
}
135136

136137
// Query the rpm database and list the package and build times for /usr/sbin/grub2-install

0 commit comments

Comments
 (0)