From 0d3826c1e1c7c4223bc982f7fc96a398e8e2e511 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Tue, 30 Sep 2025 20:20:21 +0200 Subject: [PATCH] Work around throwing realpath in executor probe Tries to work around https://github.com/JuliaContainerization/Sandbox.jl/issues/148, although I don't understand why it's asking for the realpath of `/etc/resolv.conf/` in the first place. --- src/utils.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index ef0a1d6..70658b5 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -309,8 +309,11 @@ function find_persist_dir_root(rootfs_path::String, dir_hints::Vector{String} = push!(probe_args, "--userxattr") end + real_rootfs_path = try; realpath(rootfs_path); catch; return false; end + real_mount_path = try; realpath(mount_path); catch; return false; end + return success(run(pipeline(ignorestatus( - `$(probe_exe) $(probe_args) $(realpath(rootfs_path)) $(realpath(mount_path))` + `$(probe_exe) $(probe_args) $(real_rootfs_path) $(real_mount_path)` ); stdout = verbose ? stdout : devnull, stderr = verbose ? stderr : devnull))) end