@@ -10,6 +10,7 @@ mod baseline;
1010
1111use std:: io:: BufWriter ;
1212use std:: io:: Write ;
13+ use std:: os:: fd:: AsFd ;
1314use std:: str:: FromStr ;
1415use std:: sync:: Arc ;
1516
@@ -311,7 +312,7 @@ impl SourceInfo {
311312 . quiet ( )
312313 . read ( ) ?;
313314 let root = cap_std:: fs:: Dir :: open_ambient_dir ( "/" , cap_std:: ambient_authority ( ) ) ?;
314- let repo = ostree:: Repo :: open_at_dir ( & root, "ostree/repo" ) ?;
315+ let repo = ostree:: Repo :: open_at_dir ( root. as_fd ( ) , "ostree/repo" ) ?;
315316 let root = repo
316317 . read_commit ( commit. trim ( ) , cancellable)
317318 . context ( "Reading commit" ) ?
@@ -492,13 +493,10 @@ async fn initialize_ostree_root_from_self(
492493 . iter ( )
493494 . map ( |v| v. as_str ( ) )
494495 . collect :: < Vec < _ > > ( ) ;
495- #[ allow( clippy:: needless_update) ]
496- let options = ostree_container:: deploy:: DeployOpts {
497- kargs : Some ( kargs. as_slice ( ) ) ,
498- target_imgref : Some ( & target_imgref) ,
499- proxy_cfg : Some ( proxy_cfg) ,
500- ..Default :: default ( )
501- } ;
496+ let mut options = ostree_container:: deploy:: DeployOpts :: default ( ) ;
497+ options. kargs = Some ( kargs. as_slice ( ) ) ;
498+ options. target_imgref = Some ( & target_imgref) ;
499+ options. proxy_cfg = Some ( proxy_cfg) ;
502500 println ! ( "Creating initial deployment" ) ;
503501 let state =
504502 ostree_container:: deploy:: deploy ( & sysroot, stateroot, & src_imageref, Some ( options) ) . await ?;
@@ -531,7 +529,7 @@ async fn initialize_ostree_root_from_self(
531529 writeln ! ( f, "{}" , root_setup. boot. to_fstab( ) ) ?;
532530 f. flush ( ) ?;
533531
534- let uname = rustix:: process :: uname ( ) ;
532+ let uname = rustix:: system :: uname ( ) ;
535533
536534 let aleph = InstallAleph {
537535 image : src_imageref. imgref . name . clone ( ) ,
@@ -717,7 +715,7 @@ pub(crate) fn propagate_tmp_mounts_to_host() -> Result<()> {
717715 if path. try_exists ( ) ? {
718716 std:: os:: unix:: fs:: symlink ( & target, & tmp)
719717 . with_context ( || format ! ( "Symlinking {target} to {tmp}" ) ) ?;
720- let cwd = rustix:: fs:: cwd ( ) ;
718+ let cwd = rustix:: fs:: CWD ;
721719 rustix:: fs:: renameat_with (
722720 cwd,
723721 path. as_os_str ( ) ,
0 commit comments