diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-17 20:50:43 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-17 20:50:46 +0200 |
commit | 1aab0a5b10632eb5b6644dfbfc253e31e79fd2ea (patch) | |
tree | 6ea211ee82269aa2b735c945e5c29fa78b19d38c /test/units/TEST-86-MULTI-PROFILE-UKI.sh | |
parent | Merge pull request #34457 from poettering/uki-with-many-testcase (diff) | |
download | systemd-1aab0a5b10632eb5b6644dfbfc253e31e79fd2ea.tar.xz systemd-1aab0a5b10632eb5b6644dfbfc253e31e79fd2ea.zip |
test: minor coding style fixlets
Follow-up for a37640653cab108bb2cfdcba7e9422cced925e95.
Diffstat (limited to '')
-rwxr-xr-x | test/units/TEST-86-MULTI-PROFILE-UKI.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/units/TEST-86-MULTI-PROFILE-UKI.sh b/test/units/TEST-86-MULTI-PROFILE-UKI.sh index 21d2349200..042cc59419 100755 --- a/test/units/TEST-86-MULTI-PROFILE-UKI.sh +++ b/test/units/TEST-86-MULTI-PROFILE-UKI.sh @@ -17,9 +17,9 @@ if test -f /run/systemd/stub/profile; then fi echo "CURRENT MEASUREMENT:" /usr/lib/systemd/systemd-measure --current -if test -f /run/systemd/tpm2-pcr-signature.json ; then +if test -f /run/systemd/tpm2-pcr-signature.json; then echo "CURRENT SIGNATURE:" - jq < /run/systemd/tpm2-pcr-signature.json + jq </run/systemd/tpm2-pcr-signature.json fi echo "CURRENT EVENT LOG + PCRS:" @@ -45,7 +45,7 @@ TITLE="Profile Two"' --measure-base=/tmp/extended1.efi --cmdline="testprofile2=1 # Prepare a disk image, locked to the PCR measurements of the UKI we just generated truncate -s 32M /root/encrypted.raw - echo -n "geheim" > /root/encrypted.secret + echo -n "geheim" >/root/encrypted.secret cryptsetup luksFormat -q --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --use-urandom /root/encrypted.raw --key-file=/root/encrypted.secret systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs= --tpm2-public-key=/root/pcrsign.public.pem --unlock-key-file=/root/encrypted.secret /root/encrypted.raw rm -f /root/encrypted.secret @@ -62,12 +62,12 @@ else if [ "$ID" = "profile0" ]; then grep -v testprofile /proc/cmdline - echo "default $(basename "$CURRENT_UKI")@profile1" > "$(bootctl -p)/loader/loader.conf" + echo "default $(basename "$CURRENT_UKI")@profile1" >"$(bootctl -p)/loader/loader.conf" reboot exit 0 elif [ "$ID" = "profile1" ]; then grep testprofile1=1 /proc/cmdline - echo "default $(basename "$CURRENT_UKI")@profile2" > "$(bootctl -p)/loader/loader.conf" + echo "default $(basename "$CURRENT_UKI")@profile2" >"$(bootctl -p)/loader/loader.conf" reboot exit 0 elif [ "$ID" = "profile2" ]; then |