@@ -587,7 +587,7 @@ async fn deploy(
587587 // doesn't use this API).
588588 let ( stateroot, override_kargs) = match & from {
589589 MergeState :: MergeDeployment ( deployment) => {
590- let kargs = crate :: kargs :: get_kargs ( sysroot, & deployment, image) ?;
590+ let kargs = crate :: bootc_kargs :: get_kargs ( sysroot, & deployment, image) ?;
591591 ( deployment. stateroot ( ) . into ( ) , kargs)
592592 }
593593 MergeState :: Reset { stateroot, kargs } => ( stateroot. clone ( ) , kargs. clone ( ) ) ,
@@ -614,7 +614,7 @@ async fn deploy(
614614 . map ( |s| s. as_str ( ) )
615615 . collect :: < Vec < _ > > ( ) ;
616616 opts. override_kernel_argv = Some ( & override_kargs) ;
617- let deployments = sysroot . deployments ( ) ;
617+ let deployments = ostree . deployments ( ) ;
618618 let merge_deployment = merge_deployment. map ( |m| & deployments[ m] ) ;
619619 let origin = glib:: KeyFile :: new ( ) ;
620620 origin. load_from_data ( & origin_data, glib:: KeyFileFlags :: NONE ) ?;
@@ -664,7 +664,8 @@ pub(crate) enum MergeState {
664664impl MergeState {
665665 /// Initialize using the default merge deployment for the given stateroot.
666666 pub ( crate ) fn from_stateroot ( sysroot : & Storage , stateroot : & str ) -> Result < Self > {
667- let merge_deployment = sysroot. merge_deployment ( Some ( stateroot) ) . ok_or_else ( || {
667+ let ostree = sysroot. get_ostree ( ) ?;
668+ let merge_deployment = ostree. merge_deployment ( Some ( stateroot) ) . ok_or_else ( || {
668669 anyhow:: anyhow!( "No merge deployment found for stateroot {stateroot}" )
669670 } ) ?;
670671 Ok ( Self :: MergeDeployment ( merge_deployment) )
@@ -696,13 +697,11 @@ pub(crate) async fn stage(
696697 bootc. image. reference = & spec. image. image,
697698 bootc. image. transport = & spec. image. transport,
698699 bootc. manifest_digest = image. manifest_digest. as_ref( ) ,
699- bootc. stateroot = stateroot,
700700 "Staging image for deployment: {} (digest: {})" ,
701701 spec. image,
702702 image. manifest_digest
703703 ) ;
704704
705- let ostree = sysroot. get_ostree ( ) ?;
706705 let mut subtask = SubTaskStep {
707706 subtask : "merging" . into ( ) ,
708707 description : "Merging Image" . into ( ) ,
0 commit comments