From: Lennart Poettering Date: Thu, 8 Dec 2022 11:46:41 +0000 (+0100) Subject: test: add simple test for new --in-memory switch for systemd-dissect X-Git-Tag: v253-rc1~332^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F25665%2Fhead;p=thirdparty%2Fsystemd.git test: add simple test for new --in-memory switch for systemd-dissect --- diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh index 031803f5b8c..088e5677277 100755 --- a/test/units/testsuite-50.sh +++ b/test/units/testsuite-50.sh @@ -237,6 +237,12 @@ grep -q -F -f "$os_release" "${image_dir}/mount/etc/os-release" grep -q -F "MARKER=1" "${image_dir}/mount/usr/lib/os-release" systemd-dissect --umount "${image_dir}/mount" +systemd-dissect --root-hash "${roothash}" --mount "${image}.gpt" --in-memory "${image_dir}/mount" +grep -q -F -f "$os_release" "${image_dir}/mount/usr/lib/os-release" +grep -q -F -f "$os_release" "${image_dir}/mount/etc/os-release" +grep -q -F "MARKER=1" "${image_dir}/mount/usr/lib/os-release" +systemd-dissect --umount "${image_dir}/mount" + # add explicit -p MountAPIVFS=yes once to test the parser systemd-run -P -p RootImage="${image}.gpt" -p RootHash="${roothash}" -p MountAPIVFS=yes cat /usr/lib/os-release | grep -q -F "MARKER=1"