Skip to content

Commit 81a8e01

Browse files
Johan-Liebert1cgwalters
authored andcommitted
uki: Make function get_text_section public
Useful in bootc for getting version/version id and maybe more in the future from the UKI Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 82e211e commit 81a8e01

File tree

1 file changed

+1
-1
lines changed
  • crates/composefs-boot/src

1 file changed

+1
-1
lines changed

crates/composefs-boot/src/uki.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub enum UkiError {
7171
// - the error types returned from FromBytes can't be used with `?` because they try to return a
7272
// reference to the data, which causes problems with lifetime rules
7373
// - it saves us from having to type Err(UkiError::PortableExecutableError) everywhere
74-
fn get_text_section<'a>(
74+
pub fn get_text_section<'a>(
7575
image: &'a [u8],
7676
section_name: &'static str,
7777
) -> Option<Result<&'a str, UkiError>> {

0 commit comments

Comments
 (0)