@@ -55,7 +55,7 @@ use self::baseline::InstallBlockDeviceOpts;
5555use crate :: boundimage:: { BoundImage , ResolvedBoundImage } ;
5656use crate :: containerenv:: ContainerExecutionInfo ;
5757use crate :: deploy:: { prepare_for_pull, pull_from_prepared, PreparedImportMeta , PreparedPullResult } ;
58- use crate :: kernel :: Cmdline ;
58+ use crate :: kernel_cmdline :: Cmdline ;
5959use crate :: lsm;
6060use crate :: progress_jsonl:: ProgressWriter ;
6161use crate :: spec:: ImageReference ;
@@ -817,7 +817,7 @@ async fn install_container(
817817 . repo ( )
818818 . read_commit ( pulled_image. ostree_commit . as_str ( ) , gio:: Cancellable :: NONE ) ?
819819 . 0 ;
820- let kargsd = crate :: kargs :: get_kargs_from_ostree_root (
820+ let kargsd = crate :: bootc_kargs :: get_kargs_from_ostree_root (
821821 & sysroot. repo ( ) ,
822822 merged_ostree_root. downcast_ref ( ) . unwrap ( ) ,
823823 std:: env:: consts:: ARCH ,
@@ -1668,10 +1668,11 @@ fn find_root_args_to_inherit(cmdline: &Cmdline, root_info: &Filesystem) -> Resul
16681668 . context ( "Parsing root= karg" ) ?;
16691669 // If we have a root= karg, then use that
16701670 let ( mount_spec, kargs) = if let Some ( root) = root {
1671- let rootflags = cmdline. find ( crate :: kernel:: ROOTFLAGS ) ;
1672- let inherit_kargs = cmdline
1673- . iter ( )
1674- . filter ( |arg| arg. key . starts_with ( crate :: kernel:: INITRD_ARG_PREFIX ) ) ;
1671+ let rootflags = cmdline. find ( crate :: kernel_cmdline:: ROOTFLAGS ) ;
1672+ let inherit_kargs = cmdline. iter ( ) . filter ( |arg| {
1673+ arg. key
1674+ . starts_with ( crate :: kernel_cmdline:: INITRD_ARG_PREFIX )
1675+ } ) ;
16751676 (
16761677 root. to_owned ( ) ,
16771678 rootflags
0 commit comments