|
@@ -0,0 +1,19 @@
|
|
|
|
+Subject: Fix issue with multiple encrypted devices
|
|
|
|
+Origin: v16-2-g0abdfbc <https://github.com/latchset/clevis/commit/v16-2-g0abdfbc>
|
|
|
|
+Upstream-Author: Dmitriy P <dpantel@users.noreply.github.com>
|
|
|
|
+Date: Sat Feb 13 15:32:51 2021 -0700
|
|
|
|
+
|
|
|
|
+ There is a separate askpass process (with its own PID) for each
|
|
|
|
+ encrypted device. So re-get the askpass PID with each loop iteration.
|
|
|
|
+
|
|
|
|
+--- a/src/initramfs-tools/scripts/local-top/clevis.in
|
|
|
|
++++ b/src/initramfs-tools/scripts/local-top/clevis.in
|
|
|
|
+@@ -130,6 +130,8 @@
|
|
|
|
+
|
|
|
|
+ while true; do
|
|
|
|
+
|
|
|
|
++ # Re-get the askpass PID in case there are multiple encrypted devices
|
|
|
|
++ pid=""
|
|
|
|
+ until [ "$pid" ] && [ -p "$PASSFIFO" ]; do
|
|
|
|
+ sleep .1
|
|
|
|
+ pid_fifo=$(get_askpass_pid)
|