Subject: 'shared mount flag ignored on file-system configuration

From: Wilke Schwiedop <[email-masked]>
Date: Wed, 17 May 2023 09:39:48 +0000

Hello,

I'm trying to mount my root partition as "shared" for rootless podman containers, however adding the flag to my system.scm does not seem to have the desired effect:

w@guix ~> grep -B4 shared /run/current-system/configuration.scm
 (file-systems (cons* (file-system
                       (mount-point "/")
                       (device (file-system-label "GUIX_ROOT"))
                       (type "ext4")
                       (flags '(shared))) ;; shared does not work?
w@guix ~> findmnt -o PROPAGATION /
PROPAGATION
private
w@guix ~> sudo mount -o remount,shared /
w@guix ~> findmnt -o PROPAGATION /
PROPAGATION
shared