tree-wide: fix typo

This commit is contained in:
Yu Watanabe
2023-10-04 08:58:10 +09:00
parent 31438511e0
commit fcdd21ec6a
19 changed files with 26 additions and 26 deletions

View File

@@ -96,7 +96,7 @@ tpm2_pcrextend 0:sha256=00000000000000000000000000000000000000000000000000000000
(! systemd-cryptsetup attach test-volume "$img" - tpm2-device=auto,headless=1)
if tpm_has_pcr sha256 12; then
# Enroll using an explict PCR value (that does match current PCR value)
# Enroll using an explicit PCR value (that does match current PCR value)
systemd-cryptenroll --wipe-slot=tpm2 "$img"
EXPECTED_PCR_VALUE=$(cat /sys/class/tpm/tpm0/pcr-sha256/12)
PASSWORD=passphrase systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs="12:sha256=$EXPECTED_PCR_VALUE" "$img"

View File

@@ -76,8 +76,8 @@ verify_version() {
# $1: block device
# $2: sector size
# $3: version
# $4: partiton number of part1
# $5: partiton number of part2
# $4: partition number of part1
# $5: partition number of part2
gpt_reserved_sectors=$(( 1024 * 1024 / $2 ))
part1_offset=$(( ( $4 - 1 ) * 2048 + gpt_reserved_sectors ))