[PATCH v2 1/7] host/rootfs: make fs root directories shared

Alyssa Ross
2025-12-14T01:43:33Z

We want every mount under here to show up inside the virtiofsd
sandbox.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
v2: no change

host/rootfs/image/usr/bin/create-vm-dependencies | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/host/rootfs/image/usr/bin/create-vm-dependencies b/host/rootfs/image/usr/bin/create-vm-dependencies
index 9e123fcf..6bf12d03 100755
--- a/host/rootfs/image/usr/bin/create-vm-dependencies
+++ b/host/rootfs/image/usr/bin/create-vm-dependencies
@@ -30,8 +30,8 @@ if {

# Needs to be shared so that additional mounts under config/ (e.g. from
# mount-flatpak) will be propagated into the virtiofsd sandbox.
- if { mount --make-shared --rbind -o nofail /proc/self/fd/3/fs /run/fs/${1}/config }
- if { mount --rbind -o ro /run/fs/${1} /run/fs/${1} }
+ if { mount --make-shared --rbind -o ro /run/fs/${1} /run/fs/${1} }
+ if { mount --rbind -o nofail /proc/self/fd/3/fs /run/fs/${1}/config }

# Needs to be shared so that when xdg-document-portal mounts its fuse
# filesystem at /run/doc/${1}/doc, it will propagate to /run/fs/${1}/doc.

base-commit: 227a3ea149281b6dddb0c1ba70008fffb7404c1f
--
2.51.0