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

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