add free space computation on kernel image generation

This commit is contained in:
bunnie 2025-12-22 16:16:21 +08:00
parent bfdea56dff
commit c297ca5f2e

View file

@ -267,6 +267,12 @@ pub fn sign_image(
target,
);
return Err(String::from("Image doesn't fit").into());
} else {
println!(
"=== Kernel is {} bytes: {} bytes free remaining ===",
dest_file.len(),
target - dest_file.len()
);
}
}
Ok(dest_file)