@@ -294,7 +294,7 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
294
294
}
295
295
}
296
296
} else {
297
- let fetched = crate :: deploy:: pull ( & sysroot. repo ( ) , imgref, opts. quiet ) . await ?;
297
+ let fetched = crate :: deploy:: pull ( & sysroot, imgref, opts. quiet ) . await ?;
298
298
let staged_digest = staged_image. as_ref ( ) . map ( |s| s. image_digest . as_str ( ) ) ;
299
299
let fetched_digest = fetched. manifest_digest . as_str ( ) ;
300
300
tracing:: debug!( "staged: {staged_digest:?}" ) ;
@@ -371,7 +371,7 @@ async fn switch(opts: SwitchOpts) -> Result<()> {
371
371
}
372
372
let new_spec = RequiredHostSpec :: from_spec ( & new_spec) ?;
373
373
374
- let fetched = crate :: deploy:: pull ( repo , & target, opts. quiet ) . await ?;
374
+ let fetched = crate :: deploy:: pull ( sysroot , & target, opts. quiet ) . await ?;
375
375
376
376
if !opts. retain {
377
377
// By default, we prune the previous ostree ref so it will go away after later upgrades
@@ -395,7 +395,6 @@ async fn switch(opts: SwitchOpts) -> Result<()> {
395
395
async fn edit ( opts : EditOpts ) -> Result < ( ) > {
396
396
prepare_for_write ( ) . await ?;
397
397
let sysroot = & get_locked_sysroot ( ) . await ?;
398
- let repo = & sysroot. repo ( ) ;
399
398
let ( booted_deployment, _deployments, host) =
400
399
crate :: status:: get_status_require_booted ( sysroot) ?;
401
400
let new_host: Host = if let Some ( filename) = opts. filename {
@@ -414,7 +413,7 @@ async fn edit(opts: EditOpts) -> Result<()> {
414
413
return Ok ( ( ) ) ;
415
414
}
416
415
let new_spec = RequiredHostSpec :: from_spec ( & new_host. spec ) ?;
417
- let fetched = crate :: deploy:: pull ( repo , new_spec. image , opts. quiet ) . await ?;
416
+ let fetched = crate :: deploy:: pull ( sysroot , new_spec. image , opts. quiet ) . await ?;
418
417
419
418
// TODO gc old layers here
420
419
0 commit comments