]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-readonlypaths-mount-propagation.service
Merge pull request #14194 from yuwata/network-multipath-routing-12541
[thirdparty/systemd.git] / test / test-execute / exec-readonlypaths-mount-propagation.service
1 [Unit]
2 Description=Test to make sure that passing ReadOnlyPaths= disconnect mount propagation
3
4 [Service]
5 ReadOnlyPaths=-/i-dont-exist
6 ExecStart=/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'
7 Type=oneshot