diff mbox series

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

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

Commit Message

Quirin Gylstorff April 21, 2023, 3:05 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