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

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