patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Demi Marie Obenour <demiobenour@gmail.com>
Subject: [PATCH 2/6] host/rootfs: set propagation of / to shared
Date: Mon,  1 Dec 2025 18:04:01 +0100	[thread overview]
Message-ID: <20251201170458.4186683-3-hi@alyssa.is> (raw)
In-Reply-To: <20251201170458.4186683-1-hi@alyssa.is>

This is necessary for other namespaces to find out when new top-level
mounts are added (e.g. /boot).  It also matches the systemd default.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
 host/rootfs/image/etc/s6-linux-init/scripts/rc.init | 1 +
 1 file changed, 1 insertion(+)

diff --git a/host/rootfs/image/etc/s6-linux-init/scripts/rc.init b/host/rootfs/image/etc/s6-linux-init/scripts/rc.init
index 46e5cd6..37b293d 100755
--- a/host/rootfs/image/etc/s6-linux-init/scripts/rc.init
+++ b/host/rootfs/image/etc/s6-linux-init/scripts/rc.init
@@ -9,6 +9,7 @@ if { ln -s /proc/self/fd/0 /dev/stdin }
 if { ln -s /proc/self/fd/1 /dev/stdout }
 if { ln -s /proc/self/fd/2 /dev/stderr }
 
+if { mount --make-shared / }
 if { mount --make-shared /run }
 if { mount -a --mkdir }
 
-- 
2.51.0


  reply	other threads:[~2025-12-01 17:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-01 17:03 [PATCH v2 1/6] img/app: install fuse3 globally Alyssa Ross
2025-12-01 17:04 ` Alyssa Ross [this message]
2025-12-01 20:10   ` [PATCH 2/6] host/rootfs: set propagation of / to shared Alyssa Ross
2025-12-01 17:04 ` [PATCH v2 3/6] host/rootfs: create a per-VM mount namespace Alyssa Ross
2025-12-01 20:10   ` Alyssa Ross
2025-12-01 17:04 ` [PATCH v5 4/6] tools/mount-flatpak: init Alyssa Ross
2025-12-01 19:00   ` Demi Marie Obenour
2025-12-01 19:03     ` Demi Marie Obenour
2025-12-01 20:10   ` Alyssa Ross
2025-12-01 17:04 ` [PATCH v5 5/6] img/app: run Flatpak applications Alyssa Ross
2025-12-01 20:10   ` Alyssa Ross
2025-12-01 17:04 ` [PATCH v5 6/6] host/rootfs: add run-flatpak script Alyssa Ross
2025-12-01 20:10   ` Alyssa Ross
2025-12-01 20:10 ` [PATCH v2 1/6] img/app: install fuse3 globally Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251201170458.4186683-3-hi@alyssa.is \
    --to=hi@alyssa.is \
    --cc=demiobenour@gmail.com \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).