]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-temporaryfilesystem-options.service
Merge pull request #14194 from yuwata/network-multipath-routing-12541
[thirdparty/systemd.git] / test / test-execute / exec-temporaryfilesystem-options.service
CommitLineData
4cac89bd
YW
1[Unit]
2Description=Test for TemporaryFileSystem with mount options
3
4[Service]
5Type=oneshot
6
93232986 7# The mount options default to "mode=0755,nodev,strictatime".
69338c3d 8# Let's override some of them, and test "ro".
93232986
YW
9TemporaryFileSystem=/var:ro,mode=0700,nostrictatime
10
4cac89bd 11# Check /proc/self/mountinfo
4c40f267 12ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$11 !~ /(^|,)mode=700(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""'
4cac89bd 13
4c40f267
YW
14ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)ro(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""'
15ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)nodev(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""'
16ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 ~ /(^|,)strictatime(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""'