From 332068074d1b93d1b4b9a85e38643ba0d93f85ba Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 26 Jul 2024 16:54:58 -0400 Subject: [PATCH] Extend systemdecrypt hook to support Ubuntu 24.04 Ubuntu 240.4 systemd-cryptsetup now has an external dependency. --- .../ubuntu22.04/profiles/default/scripts/systemdecrypt-hook | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/systemdecrypt-hook b/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/systemdecrypt-hook index 48c9d16d..ee602c7c 100644 --- a/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/systemdecrypt-hook +++ b/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/systemdecrypt-hook @@ -13,6 +13,10 @@ for i in /lib/x86_64-linux-gnu/libtss2* do copy_exec ${i} /lib/x86_64-linux-gnu done +if [ -f /lib/x86_64-linux-gnu/cryptsetup/libcryptsetup-token-systemd-tpm2.so ]; then + mkdir -p $DESTDIR/lib/x86_64-linux-gnu/cryptsetup + copy_exec /lib/x86_64-linux-gnu/cryptsetup/libcryptsetup-token-systemd-tpm2.so /lib/x86_64-linux-gnu/cryptsetup +fi mkdir -p $DESTDIR/scripts/local-top echo /scripts/local-top/systemdecrypt >> $DESTDIR/scripts/local-top/ORDER