[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#967052: live-boot: fixed handling of plymouth LUKS retry prompt



Package: live-boot
Version: 1:20190614
Severity: normal
Tags: patch

When using a LUKS encrypted persistence partition and mistyping the
password, the plymouth retry prompt doesn't get deleted after answering.
The attached patch fixes this issue.

Best regards

Ronny
From 7b6d961d0bbabcc43385e092f4e25ce76b2d0c2e Mon Sep 17 00:00:00 2001
From: Ronny Standtke <ronny.standtke@gmx.net>
Date: Mon, 3 Aug 2020 18:35:33 +0200
Subject: [PATCH] delete plymouth retry promt after answer

---
 components/9990-misc-helpers.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 7994ecd..6ccdbc3 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -902,6 +902,7 @@ open_luks_device ()
 			true)
 				plymouth display-message --text "${retryprompt}"
 				answer=$(plymouth watch-keystroke --keys="YNyn")
+				plymouth display-message --text ""
 				;;

 			*)
@@ -912,12 +913,6 @@ open_luks_device ()

 		if [ "$(echo "${answer}" | cut -b1 | tr A-Z a-z)" = "n" ]
 		then
-			case "${_PLYMOUTH}" in
-				true)
-					plymouth display-message --text ""
-					;;
-			esac
-
 			return 2
 		fi
 	done
--
2.27.0


Reply to: