File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use std::process::Command;
44use anyhow:: { anyhow, bail, Context , Result } ;
55use bootc_utils:: CommandRunExt ;
66use camino:: Utf8Path ;
7- use cap_std_ext:: cap_std:: ambient_authority;
87use cap_std_ext:: cap_std:: fs:: Dir ;
98use cap_std_ext:: dirext:: CapStdExtDirExt ;
109use fn_error_context:: context;
@@ -102,7 +101,9 @@ pub(crate) fn install_systemd_boot(
102101 let path = esp_path. join ( SYSTEMD_AUTOENROLL ) ;
103102 create_dir_all ( & path) ?;
104103
105- let keys_dir = Dir :: open_ambient_dir ( & path, ambient_authority ( ) )
104+ let keys_dir = esp_mount
105+ . fd
106+ . open_dir ( SYSTEMD_AUTOENROLL )
106107 . with_context ( || format ! ( "Opening {path}" ) ) ?;
107108 for filename in keys. iter ( ) {
108109 let p = path. join ( filename. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments