@@ -74,19 +74,21 @@ use cap_std_ext::{
7474 cap_std:: { ambient_authority, fs:: Dir } ,
7575 dirext:: CapStdExtDirExt ,
7676} ;
77+ use cfsctl:: composefs;
78+ use cfsctl:: composefs_boot;
79+ use cfsctl:: composefs_oci;
7780use clap:: ValueEnum ;
7881use composefs:: fs:: read_file;
82+ use composefs:: fsverity:: { FsVerityHashValue , Sha512HashValue } ;
7983use composefs:: tree:: RegularFile ;
8084use composefs_boot:: BootOps ;
81- use composefs_boot:: bootloader:: { EFI_ADDON_DIR_EXT , EFI_ADDON_FILE_EXT , EFI_EXT , PEType } ;
82- use fn_error_context:: context;
83- use ostree_ext:: composefs:: fsverity:: { FsVerityHashValue , Sha512HashValue } ;
84- use ostree_ext:: composefs_boot:: bootloader:: UsrLibModulesVmlinuz ;
85- use ostree_ext:: composefs_boot:: {
86- bootloader:: BootEntry as ComposefsBootEntry , cmdline:: get_cmdline_composefs,
87- os_release:: OsReleaseInfo , uki,
85+ use composefs_boot:: bootloader:: {
86+ BootEntry as ComposefsBootEntry , EFI_ADDON_DIR_EXT , EFI_ADDON_FILE_EXT , EFI_EXT , PEType ,
87+ UsrLibModulesVmlinuz ,
8888} ;
89- use ostree_ext:: composefs_oci:: image:: create_filesystem as create_composefs_filesystem;
89+ use composefs_boot:: { cmdline:: get_cmdline_composefs, os_release:: OsReleaseInfo , uki} ;
90+ use composefs_oci:: image:: create_filesystem as create_composefs_filesystem;
91+ use fn_error_context:: context;
9092use rustix:: { mount:: MountFlags , path:: Arg } ;
9193use schemars:: JsonSchema ;
9294use serde:: { Deserialize , Serialize } ;
@@ -333,10 +335,10 @@ fn compute_boot_digest(
333335/// * repo - The composefs repository
334336#[ context( "Computing boot digest" ) ]
335337pub ( crate ) fn compute_boot_digest_uki ( uki : & [ u8 ] ) -> Result < String > {
336- let vmlinuz = composefs_boot :: uki :: get_section ( uki , ".linux" )
337- . ok_or_else ( || anyhow:: anyhow!( ".linux not present" ) ) ??;
338+ let vmlinuz =
339+ uki :: get_section ( uki , ".linux" ) . ok_or_else ( || anyhow:: anyhow!( ".linux not present" ) ) ??;
338340
339- let initramfs = composefs_boot :: uki:: get_section ( uki, ".initrd" )
341+ let initramfs = uki:: get_section ( uki, ".initrd" )
340342 . ok_or_else ( || anyhow:: anyhow!( ".initrd not present" ) ) ??;
341343
342344 let mut hasher = openssl:: hash:: Hasher :: new ( openssl:: hash:: MessageDigest :: sha256 ( ) )
0 commit comments