diff --git a/avbroot/src/patch/boot.rs b/avbroot/src/patch/boot.rs index ccb19fd..597c294 100644 --- a/avbroot/src/patch/boot.rs +++ b/avbroot/src/patch/boot.rs @@ -1134,6 +1134,11 @@ pub fn patch_boot_images<'a>( ) -> Result> { let parent_span = Span::current(); + if patchers.is_empty() { + debug!("Skip loading boot images; nothing to patch"); + return Ok(HashSet::new()); + } + // Preparse all images. Some patchers need to inspect every candidate. let mut images = load_boot_images(names, open_input)?;