2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 08:33:23 +00:00

Correct checking encryptboot pcrs in firstboot

This commit is contained in:
Jarrod Johnson
2026-08-10 14:22:12 -04:00
parent 730f645dc0
commit 486540d24d
@@ -47,7 +47,7 @@ while ! ping -c 1 $confluent_pingtarget >& /dev/null; do
done
if [ -e /etc/confluent/luks.key ]; then
pcrs=$(sed -n -e 's/.*tpm2:pcrs=\([0-9,]*\).*/\1/p' /tmp/cryptboot)
pcrs=$(grep ^encryptboot: /etc/confluent/confluent.deploycfg | awk '{print $2}' | grep -o 'pcrs=[^:]*' | cut -d= -f2)
if [ -n "$pcrs" ]; then
run_remote tpm_luks_reseal.sh
fi