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:
Yu Watanabe
2022-09-12 00:37:01 +09:00
parent 15b3f7e309
commit 759b4b4a2a

View File

@@ -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