]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add quick test for ensuring image UUID is deterministic based on the seed passe... 25261/head
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 16:33:31 +0000 (17:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 16:33:51 +0000 (17:33 +0100)
test/units/testsuite-58.sh

index 8787a24c0ef2c7acef978f9c89c1fdc860927c7d..5a515d9c0159d0a56ac8d1488bd745fb212d984b 100755 (executable)
@@ -769,9 +769,10 @@ EOF
 
     roothash=$(jq -r ".[] | select(.type == \"root-${architecture}-verity\") | .roothash" <<< "$output")
 
-    # Check that we can dissect, mount and unmount a repart verity image.
+    # Check that we can dissect, mount and unmount a repart verity image. (and that the image UUID is deterministic)
 
     systemd-dissect "$imgs/verity" --root-hash "$roothash"
+    systemd-dissect "$imgs/verity" --root-hash "$roothash" --json=short | grep -q '"imageUuid":"1d2ce291-7cce-4f7d-bc83-fdb49ad74ebd"'
     systemd-dissect "$imgs/verity" --root-hash "$roothash" -M "$imgs/mnt"
     systemd-dissect -U "$imgs/mnt"
 }