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(|| {