Skip to content

Commit 78777f3

Browse files
Johan-Liebert1allisonkarlitskaya
authored andcommitted
Add boot relocation for BootEntry::UsrLibModulesVmLinuz
Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 2a71e03 commit 78777f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/composefs-boot/src/write_boot.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ pub fn write_boot_simple<ObjectID: FsVerityHashValue>(
8787
}
8888
BootEntry::UsrLibModulesUki(_entry) => todo!(),
8989
BootEntry::UsrLibModulesVmLinuz(entry) => {
90-
let t1 = entry.into_type1(entry_id);
90+
let mut t1 = entry.into_type1(entry_id);
91+
if let Some(name) = entry_id {
92+
t1.relocate(name)?;
93+
}
9194
write_t1_simple(t1, bootdir, root_id, cmdline_extra, repo)?;
9295
}
9396
};

0 commit comments

Comments
 (0)