make mountpoints shared
Hello,
I'd be interested in having / mounted as shared, either by default or as an option.
(Feel free to tell me to go open an issue in openrc instead)
The rationale for this is that I selfishly need to have some mountpoints mounted as shared for some container usages (when alpine is the host OS), in order to backpropagate mounts made by a privileged container in a volume marked as 'shared'.
In my case the volumes shouldn't be made directly off /, so just marking the FS where volumes should be as shared is probably going to be enough but it's not something I have direct control of so I'd be more comfortable with / marked shared as systemd has been doing (not a great argument admittedly... But it's what users are used to)
FWIW, it looks like podman 4 in rootless mode also seems to depend on it: https://github.com/containers/podman/discussions/12721 and aports#13541 (closed) (the hang might not be related but it illustrates the warning message being shown), so we might get other requests at this point.
With all that said, the question would be where to do it -- I think openrc's init.d/root might be the place, if a user adds shared to fstab, fstabinfo -o /
will print it and we can mount --make-(r)shared /
at this point (or other way around if it's to be made default -- do it here unless there's "private" in the fstab options), but perhaps there is a better way I'm not aware of?
Or should I just do it in my container starting service, and not bother the rest of alpine with it?
Thanks!