From feb418ac59d1504128d6eac974d6d8f3c0ce4fdf Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Jun 2021 17:22:18 -0400 Subject: [PATCH] Store TPM unsealed apikey in usual location --- .../initramfs/lib/dracut/hooks/cmdline/10-confluentdiskless.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/suse15-diskless/initramfs/lib/dracut/hooks/cmdline/10-confluentdiskless.sh b/confluent_osdeploy/suse15-diskless/initramfs/lib/dracut/hooks/cmdline/10-confluentdiskless.sh index d8a464af..2bd08f79 100644 --- a/confluent_osdeploy/suse15-diskless/initramfs/lib/dracut/hooks/cmdline/10-confluentdiskless.sh +++ b/confluent_osdeploy/suse15-diskless/initramfs/lib/dracut/hooks/cmdline/10-confluentdiskless.sh @@ -69,6 +69,7 @@ for hdl in $(tpm2_getcap handles-persistent|awk '{print $2}'); do unsealeddata=$(tpm2_unseal -Q -c $hdl) if [[ $unsealeddata == "CONFLUENT_APIKEY:"* ]]; then confluent_apikey=${unsealeddata#CONFLUENT_APIKEY:} + echo $confluent_apikey > /etc/confluent/confluent.apikey fi done needseal=0