Browse Source

Cherry-pick "Fix issue with multiple encrypted devices"

Christoph Biedl 8 months ago
parent
commit
d6f435dd1c

+ 19 - 0
debian/patches/cherry-pick/1613255571.v16-2-g0abdfbc.fix-issue-with-multiple-encrypted-devices.patch

@@ -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)

+ 1 - 0
debian/patches/series

@@ -1,4 +1,5 @@
 # cherry-picked commits. Keep in upstream's chronological order
+cherry-pick/1613255571.v16-2-g0abdfbc.fix-issue-with-multiple-encrypted-devices.patch
 
 # patches for upstream
 for-upstream/2018-10-30.use-asciidoctor-to-build-manpages.patch