]>
Commit | Line | Data |
---|---|---|
4cac89bd YW |
1 | [Unit] |
2 | Description=Test for TemporaryFileSystem with mount options | |
3 | ||
4 | [Service] | |
5 | Type=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 |
9 | TemporaryFileSystem=/var:ro,mode=0700,nostrictatime |
10 | ||
4cac89bd | 11 | # Check /proc/self/mountinfo |
4c40f267 | 12 | ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$11 !~ /(^|,)mode=700(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' |
4cac89bd | 13 | |
4c40f267 YW |
14 | ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)ro(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' |
15 | ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 !~ /(^|,)nodev(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' | |
16 | ExecStart=/bin/sh -x -c 'test "$$(awk \'$$5 == "/var" && $$6 ~ /(^|,)strictatime(,|$$)/ { print $$6 }\' /proc/self/mountinfo)" = ""' |