mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
test-50-dissect: check mount destination instead of mount source
And rebreak long lines. This should take no effective change, just refactoring.
This commit is contained in:
@@ -297,7 +297,14 @@ Type=notify
|
||||
RemainAfterExit=yes
|
||||
MountAPIVFS=yes
|
||||
PrivateTmp=yes
|
||||
ExecStart=/bin/sh -c 'systemd-notify --ready; while ! grep -q -F MARKER /tmp/img/usr/lib/os-release; do sleep 0.1; done; mount | grep -e "/dev/mapper/${roothash}-verity" -e "/dev/mapper/loop[0-9]*-verity" | grep -q -F "nosuid"'
|
||||
ExecStart=/bin/sh -c ' \\
|
||||
systemd-notify --ready; \\
|
||||
while [[ ! -f /tmp/img/usr/lib/os-release ]] || ! grep -q -F MARKER /tmp/img/usr/lib/os-release; do \\
|
||||
sleep 0.1; \\
|
||||
done; \\
|
||||
mount; \\
|
||||
mount | grep -F "on /tmp/img type squashfs" | grep -q -F "nosuid"; \\
|
||||
'
|
||||
EOF
|
||||
systemctl start testservice-50d.service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user