]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-readonlypaths-mount-propagation.service
Merge pull request #11589 from yuwata/udevd-is-device-busy
[thirdparty/systemd.git] / test / test-execute / exec-readonlypaths-mount-propagation.service
CommitLineData
cdfbd1fb
DH
1[Unit]
2Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation
3
4[Service]
5ReadOnlyPaths=-/i-dont-exist
b8d79b4b 6ExecStart=/bin/sh -x -c 'd=$$(mktemp -d -p /tmp); trap "umount \'$$d\' && rmdir \'$$d\'" EXIT; mount -t tmpfs tmpfs "$$d"; grep "$$d" /proc/self/mountinfo && ! grep "$$d" /proc/$${PPID}/mountinfo && ! grep "$$d" /proc/1/mountinfo'
cdfbd1fb 7Type=oneshot