summaryrefslogtreecommitdiff
path: root/test/units
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2020-10-17 22:10:42 +0100
committerLuca Boccassi <bluca@debian.org>2020-10-18 11:44:18 +0100
commit7580a647661ecff799740f8d7cab2fcc2db77436 (patch)
treee290f8d70d98ec416714e3ff7cda903887c22c3b /test/units
parent964523e6c2461951db31789af85ab5b52d95e970 (diff)
downloadsystemd-7580a647661ecff799740f8d7cab2fcc2db77436.tar.gz
test: increase size of verity partition in TEST-50-DISSECT GPT image
On Ubuntu it seems there's some padding added
Diffstat (limited to 'test/units')
-rwxr-xr-xtest/units/testsuite-50.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh
index 883c83b8b7..1454ec4640 100755
--- a/test/units/testsuite-50.sh
+++ b/test/units/testsuite-50.sh
@@ -102,7 +102,7 @@ if [ ${root_size} -ge 1024 ]; then
else
root_size="${root_size}KiB"
fi
-verity_size="${verity_size}KiB"
+verity_size="$((${verity_size} * 2))KiB"
uuid="$(head -c 32 ${image}.roothash | cut -c -8)-$(head -c 32 ${image}.roothash | cut -c 9-12)-$(head -c 32 ${image}.roothash | cut -c 13-16)-$(head -c 32 ${image}.roothash | cut -c 17-20)-$(head -c 32 ${image}.roothash | cut -c 21-)"
echo -e "label: gpt\nsize=${root_size}, type=${root_guid}, uuid=${uuid}" | sfdisk ${image}.gpt
uuid="$(tail -c 32 ${image}.roothash | cut -c -8)-$(tail -c 32 ${image}.roothash | cut -c 9-12)-$(tail -c 32 ${image}.roothash | cut -c 13-16)-$(tail -c 32 ${image}.roothash | cut -c 17-20)-$(tail -c 32 ${image}.roothash | cut -c 21-)"