diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index f41069ee04..9798c5b122 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -773,6 +773,60 @@ EOF systemd-dissect -U "$imgs/mnt" } +test_issue_24786() { + local defs imgs root output + + if systemd-detect-virt --quiet --container; then + echo "Skipping verity test in container." + return + fi + + defs="$(mktemp --directory "/tmp/test-repart.XXXXXXXXXX")" + imgs="$(mktemp --directory "/var/tmp/test-repart.XXXXXXXXXX")" + root="$(mktemp --directory "/var/tmp/test-repart.XXXXXXXXXX")" + # shellcheck disable=SC2064 + trap "rm -rf '$defs' '$imgs' '$root'" RETURN + + touch "$root/abc" + mkdir "$root/usr" + touch "$root/usr/def" + + cat >"$defs/00-root.conf" <"$defs/10-usr.conf" <= 512 and <= PAGE_SIZE, and # must be powers of 2. Which leaves exactly four different ones to test on