extend PCR7 after using it to unlock the LUKS
This commit is contained in:
parent
52e5a2c9fa
commit
6910172911
|
@ -68,6 +68,10 @@ if cryptsetup isLuks --type luks2 "$datadev"; then
|
|||
else
|
||||
clevis-luks-unlock -d "$datadev" -n "$luksname" || die "Failed to unlock $datadev"
|
||||
fi
|
||||
tpm2_pcrextend \
|
||||
-T device:/dev/tpmrm0 \
|
||||
7:sha1=f6196dd72e7fad01051cb171ed3e8a29f7217b3a,sha256=6064ec4f91ea49cce638d0b7f9013989c01cba8a62957ac96cd1976bb2e098fa 2>&1 \
|
||||
|| die "Failed to extend PCR7"
|
||||
fi
|
||||
datadev="$luksdev"
|
||||
fi
|
||||
|
|
|
@ -207,7 +207,8 @@ chroot "$sysroot" \
|
|||
--install "clonedisk wipefs sfdisk dd mkfs.xfs mkswap chroot mountpoint mkdir stat openssl" \
|
||||
--install "clevis clevis-luks-bind jose clevis-encrypt-tpm2 clevis-decrypt clevis-luks-unlock clevis-decrypt-tpm2" \
|
||||
--install "cryptsetup tail sort pwmake mktemp " \
|
||||
--install "tpm2_createprimary tpm2_pcrlist tpm2_createpolicy tpm2_create tpm2_load tpm2_unseal tpm2_takeownership" \
|
||||
--install "tpm2_pcrextend tpm2_createprimary tpm2_pcrlist tpm2_createpolicy" \
|
||||
--install "tpm2_create tpm2_load tpm2_unseal tpm2_takeownership" \
|
||||
--install "strace" \
|
||||
--include /pre-pivot.sh /lib/dracut/hooks/pre-pivot/pre-pivot.sh \
|
||||
--include /overlay / \
|
||||
|
|
Loading…
Reference in a new issue