From a4583df025facb8a0262137a7d71486275527adc Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Wed, 31 May 2023 17:29:02 +0200 Subject: [PATCH] Actually mount when mapping into / --- lib/wasi/src/runners/wasi_common.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wasi/src/runners/wasi_common.rs b/lib/wasi/src/runners/wasi_common.rs index 6cb70499c37..257d115baaf 100644 --- a/lib/wasi/src/runners/wasi_common.rs +++ b/lib/wasi/src/runners/wasi_common.rs @@ -121,6 +121,7 @@ fn prepare_filesystem( })?; if guest_path == Path::new("/") { + root_fs.mount_directory_entries(&guest_path, &host_fs, &host_path)?; } else { if let Some(parent) = guest_path.parent() { create_dir_all(&root_fs, parent).with_context(|| {