File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,9 @@ const BOUND_IMAGE_DIR: &str = "usr/lib/bootc-experimental/bound-images.d";
20
20
21
21
/// Given a deployment, pull all container images it references.
22
22
pub ( crate ) fn pull_bound_images ( sysroot : & SysrootLock , deployment : & Deployment ) -> Result < ( ) > {
23
- let sysroot_fd = crate :: utils:: sysroot_fd ( & sysroot) ;
24
- let sysroot_fd = Dir :: reopen_dir ( & sysroot_fd) ?;
25
- let deployment_root_path = sysroot. deployment_dirpath ( & deployment) ;
26
- let deployment_root = & sysroot_fd. open_dir ( & deployment_root_path) ?;
27
-
28
- let bound_images = parse_spec_dir ( & deployment_root, BOUND_IMAGE_DIR ) ?;
29
- pull_images ( deployment_root, bound_images) ?;
30
-
31
- Ok ( ( ) )
23
+ let deployment_root = & crate :: utils:: deployment_fd ( sysroot, deployment) ?;
24
+ let bound_images = parse_spec_dir ( deployment_root, BOUND_IMAGE_DIR ) ?;
25
+ pull_images ( deployment_root, bound_images)
32
26
}
33
27
34
28
#[ context( "parse bound image spec dir" ) ]
You can’t perform that action at this time.
0 commit comments