diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-12 04:45:25 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-12 04:45:25 +0000 |
| commit | a73d7e29c0064e0a40ffcfb98f6b349ced5463b2 (patch) | |
| tree | c3b1ae2456141945e0ebc1d892b1d3f4be4604a1 /src/initramfs.rs | |
| parent | bdab2223c98bb0b42e7f93f4e40f54f1ac16bb71 (diff) | |
Execute native image build stages
Diffstat (limited to 'src/initramfs.rs')
| -rw-r--r-- | src/initramfs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/initramfs.rs b/src/initramfs.rs index ddb1010..1c5c089 100644 --- a/src/initramfs.rs +++ b/src/initramfs.rs @@ -178,7 +178,8 @@ pub struct InitramfsResult { } impl InitramfsResult { - fn from_rootfs(rootfs: &Path, kernel: &KernelVersion) -> Result<Self> { + /// Record the generated initrd as a rootfs-relative semantic fact. + pub fn from_rootfs(rootfs: &Path, kernel: &KernelVersion) -> Result<Self> { let initrd_path = PathBuf::from(format!("boot/initrd-{}.img", kernel.as_str())); let contents = fs::read(rootfs.join(&initrd_path)) .with_context(|| format!("read generated initrd {}", initrd_path.display()))?; |