Skip to content

Commit ff1413a

Browse files
committed
fix: fix legacy (syschdemd) mode
Quoth man mount(2) > EINVAL > > A bind operation (MS_BIND) was requested where source > referred a mount namespace magic link (i.e., a > /proc/pid/ns/mnt magic link or a bind mount to such a > link) and the propagation type of the parent mount of > target was MS_SHARED, but propagation of the requested > bind mount could lead to a circular dependency that might > prevent the mount namespace from ever being freed.
1 parent f347f6c commit ff1413a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/systemd/syschdemd/syschdemd.sh

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ run_in_namespace() {
3838
}
3939

4040
start_systemd() {
41+
mount --bind --make-private $rundir $rundir
42+
4143
daemonize \
4244
-o $rundir/stdout \
4345
-e $rundir/stderr \

0 commit comments

Comments
 (0)