Blame SOURCES/Install-cryptsetup-and-tpm2_pcrlist-in-the-initramfs.patch

524513
From 34658590e45ab85f6008379d9433406a5c7fd914 Mon Sep 17 00:00:00 2001
524513
From: Javier Martinez Canillas <javierm@redhat.com>
524513
Date: Wed, 7 Nov 2018 15:12:17 +0100
524513
Subject: [PATCH 2/3] Install cryptsetup and tpm2_pcrlist in the initramfs
524513
524513
The cryptsetup and tpm2_pcrlist are missing in the initramfs, this makes
524513
automatic LUKS unlocking fail with the following errors:
524513
524513
dracut-initqueue[382]: /usr/libexec/clevis-luks-askpass: line 52: cryptsetup: command not found
524513
dracut-initqueue[382]: /usr/bin/clevis-decrypt-tpm2: line 40: tpm2_pcrlist: command not found
524513
524513
Suggested-by: Federico Chiacchiaretta <federico.chia@gmail.com>
524513
524513
Fixes: #74
524513
---
524513
 src/luks/systemd/dracut/module-setup.sh.in | 3 +++
524513
 1 file changed, 3 insertions(+)
524513
524513
diff --git a/src/luks/systemd/dracut/module-setup.sh.in b/src/luks/systemd/dracut/module-setup.sh.in
524513
index 48aea5b3f29a..41e7d6c9b002 100755
524513
--- a/src/luks/systemd/dracut/module-setup.sh.in
524513
+++ b/src/luks/systemd/dracut/module-setup.sh.in
524513
@@ -40,6 +40,7 @@ install() {
524513
         clevis-decrypt-sss \
524513
         @libexecdir@/clevis-luks-askpass \
524513
         clevis-decrypt \
524513
+        cryptsetup \
524513
         luksmeta \
524513
         clevis \
524513
         mktemp \
524513
@@ -49,6 +50,7 @@ install() {
524513
 
524513
     for cmd in clevis-decrypt-tpm2 \
524513
 	tpm2_createprimary \
524513
+	tpm2_pcrlist \
524513
 	tpm2_unseal \
524513
 	tpm2_load; do
524513
 
524513
@@ -60,6 +62,7 @@ install() {
524513
     if (($ret == 0)); then
524513
 	inst_multiple clevis-decrypt-tpm2 \
524513
 	    tpm2_createprimary \
524513
+	    tpm2_pcrlist \
524513
 	    tpm2_unseal \
524513
 	    tpm2_load
524513
     fi
524513
-- 
524513
2.19.1
524513