From 7757d2d32f96acc1c6025774899652df60aebef7 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 27 Apr 2026 20:35:05 +0200 Subject: [PATCH] Fix init path passed to fexec_impl Getting this path wrong breaks dynamically linking init. --- bootstrap/src/exec.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap/src/exec.rs b/bootstrap/src/exec.rs index 24df729806..8425e3b5e1 100644 --- a/bootstrap/src/exec.rs +++ b/bootstrap/src/exec.rs @@ -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,