bootstrap: adapt to upstream redox-rt API changes

- ExtraInfo now requires filetable_fd and same_process fields
- fexec_impl now returns Option<FexecResult>
This commit is contained in:
Red Bear OS
2026-07-11 14:13:50 +03:00
parent 979b5fa55c
commit 479138d02f
2 changed files with 15 additions and 7 deletions
+4 -2
View File
@@ -220,6 +220,8 @@ pub fn main() -> ! {
proc_fd: init_proc_fd.as_raw_fd(),
ns_fd: Some(initns_fd.take()),
cwd_fd: Some(cwd_fd.as_raw_fd()),
filetable_fd: None,
same_process: false,
};
let path = "/scheme/initfs/bin/init";
@@ -233,10 +235,10 @@ pub fn main() -> ! {
let exe_path = alloc::format!("/scheme/initfs{}", path);
let FexecResult::Interp {
let Some(FexecResult::Interp {
path: interp_path,
interp_override,
} = fexec_impl(
}) = fexec_impl(
image_file,
init_thr_fd,
init_proc_fd,