diff mbox series

[isar-cip-core,v4,4/7] initramfs-crypt-hook: Add libcryptsetup-token-systemd-tpm2.so

Message ID 20230502153759.1284906-5-Quirin.Gylstorff@siemens.com (mailing list archive)
State Accepted
Headers show
Series Fixes for secure boot | expand

Commit Message

Quirin Gylstorff May 2, 2023, 3:37 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

This fixes the boot of bookworm with encrypted partitions.
With systemd (251.5-2) the libcryptsetup library are used see
https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/changelog#L258

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 .../initramfs-crypt-hook/files/encrypt_partition.systemd.hook    | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.systemd.hook b/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.systemd.hook
index a535736..4f7263b 100755
--- a/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.systemd.hook
+++ b/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.systemd.hook
@@ -42,6 +42,7 @@  copy_exec /usr/sbin/cryptsetup || hook_error "/usr/sbin/cryptsetup not found"
 copy_exec /usr/bin/systemd-cryptenroll || hook_error "/usr/bin/systemd-cryptenroll not found"
 copy_exec /usr/lib/systemd/systemd-cryptsetup || hook_error "/usr/lib/systemd/systemd-cryptsetup not found"
 
+copy_exec /usr/lib/*/cryptsetup/libcryptsetup-token-systemd-tpm2.so || hook_error "/usr/lib/*/cryptsetup/libcryptsetup-token-systemd-tpm2.so not found"
 if [ -x cryptsetup-reencrypt ]; then
     copy_exec /usr/sbin/cryptsetup-reencrypt
 fi