Merge branch 'fix_init_path' into 'main'

Fix init path passed to fexec_impl

See merge request redox-os/base!247
This commit is contained in:
Jeremy Soller
2026-04-27 12:37:35 -06:00
+2 -4
View File
@@ -222,17 +222,15 @@ pub fn main() -> ! {
cwd_fd: Some(cwd_fd.as_raw_fd()),
};
let path = "/scheme/initfs/bin/init";
let exe_path = "/scheme/initfs/bin/init";
let image_file = FdGuard::new(
syscall::openat(extrainfo.ns_fd.unwrap(), path, O_RDONLY | O_CLOEXEC, 0)
syscall::openat(extrainfo.ns_fd.unwrap(), exe_path, O_RDONLY | O_CLOEXEC, 0)
.expect("failed to open init"),
)
.to_upper()
.unwrap();
let exe_path = alloc::format!("/scheme/initfs{}", path);
let FexecResult::Interp {
path: interp_path,
interp_override,