Blame SOURCES/Add-device-TCTI-library-to-the-initramfs.patch

524513
From 6826e5d31d6323eac5137404f0194bf2183b561c Mon Sep 17 00:00:00 2001
524513
From: Javier Martinez Canillas <javierm@redhat.com>
524513
Date: Wed, 7 Nov 2018 16:48:47 +0100
524513
Subject: [PATCH 3/3] Add device TCTI library to the initramfs
524513
524513
The tpm2-tools don't dynamically link against the TCTI libraries anymore,
524513
but instead dlopen() the correct library depending on the TCTI used.
524513
524513
So dracut isn't able anymore to figure out automatically using ldd what
524513
libraries are needed by the tpm2-tools. Since clevis uses the device TCTI
524513
to access the TPM directly, add the libtss2-tcti-device.so to the initrd.
524513
524513
Suggested-by: Federico Chiacchiaretta <federico.chia@gmail.com>
524513
524513
Fixes: ##74
524513
---
524513
 src/luks/systemd/dracut/module-setup.sh.in | 1 +
524513
 1 file changed, 1 insertion(+)
524513
524513
diff --git a/src/luks/systemd/dracut/module-setup.sh.in b/src/luks/systemd/dracut/module-setup.sh.in
524513
index 41e7d6c9b002..990bf4aeed56 100755
524513
--- a/src/luks/systemd/dracut/module-setup.sh.in
524513
+++ b/src/luks/systemd/dracut/module-setup.sh.in
524513
@@ -65,6 +65,7 @@ install() {
524513
 	    tpm2_pcrlist \
524513
 	    tpm2_unseal \
524513
 	    tpm2_load
524513
+	inst_libdir_file "libtss2-tcti-device.so*"
524513
     fi
524513
 
524513
     dracut_need_initqueue
524513
-- 
524513
2.19.1
524513