diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-12 08:16:51 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-12 08:16:51 +0000 |
| commit | 9e3259b6fd163903c406b250e18782370e63c517 (patch) | |
| tree | 068509ece2624bf6b71108866671c5d1d9b012da /src/build.rs | |
| parent | ffa26f89481aa2d6259137b27cbe34f8e8330154 (diff) | |
Verify initrd digest before native packaging
Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build.rs b/src/build.rs index 8b6ebb0..cb6a436 100644 --- a/src/build.rs +++ b/src/build.rs @@ -110,6 +110,7 @@ impl<I: PackageInstaller, B: InitramfsBuilder> BuildExecutor<I, B> { Err(error) => return Self::fail_and_remove_workspace(workspace, error), }; let result = (|| { + initrd.verify_in_rootfs(&rootfs)?; std::fs::create_dir_all(parent) .with_context(|| format!("create artifact directory {}", parent.display()))?; self.tar_writer.write(&rootfs, artifact)?; |