File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ fn verity_opt(opt: &Option<String>) -> Result<Option<Sha512HashValue>> {
151
151
Ok ( opt. as_ref ( ) . map ( FsVerityHashValue :: from_hex) . transpose ( ) ?)
152
152
}
153
153
154
- pub ( crate ) async fn run_from_iter < I > ( system_store : & crate :: store :: Storage , args : I ) -> Result < ( ) >
154
+ pub ( crate ) async fn run_from_iter < I > ( args : I ) -> Result < ( ) >
155
155
where
156
156
I : IntoIterator ,
157
157
I :: Item : Into < OsString > + Clone ,
@@ -172,6 +172,7 @@ where
172
172
if args. insecure {
173
173
anyhow:: bail!( "Cannot override insecure state for system repo" ) ;
174
174
}
175
+ let system_store = crate :: cli:: get_storage ( ) . await ?;
175
176
system_store. get_ensure_composefs ( ) ?
176
177
} ;
177
178
let repo = & repo;
Original file line number Diff line number Diff line change @@ -1429,10 +1429,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
1429
1429
Ok ( ( ) )
1430
1430
}
1431
1431
} ,
1432
- InternalsOpts :: Cfs { args } => {
1433
- let sysroot = & get_storage ( ) . await ?;
1434
- crate :: cfsctl:: run_from_iter ( sysroot, args. iter ( ) ) . await
1435
- }
1432
+ InternalsOpts :: Cfs { args } => crate :: cfsctl:: run_from_iter ( args. iter ( ) ) . await ,
1436
1433
InternalsOpts :: Reboot => crate :: reboot:: reboot ( ) ,
1437
1434
InternalsOpts :: Fsck => {
1438
1435
let sysroot = & get_storage ( ) . await ?;
You can’t perform that action at this time.
0 commit comments