mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH] cryptroot-ask: check that plymouth is running before use
@ 2011-03-10 22:54 Andrey Borzenkov
       [not found] ` <1299797644-6951-1-git-send-email-arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Andrey Borzenkov @ 2011-03-10 22:54 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Otherwise there is no way to skip pasword prompt. --has-active-vt
seems to correctly catch also the case when plymouthd is started
but splash is disabled.

Signed-off-by: Andrey Borzenkov <arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

---
 modules.d/90crypt/cryptroot-ask.sh |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh
index 5150688..9c99ccc 100755
--- a/modules.d/90crypt/cryptroot-ask.sh
+++ b/modules.d/90crypt/cryptroot-ask.sh
@@ -80,9 +80,8 @@ if [ -n "$(getarg rd.luks.key)" ]; then
     rmdir "$mntp"
     unset mntp keypath keydev
 else
-    # Prompt for password with plymouth, if installed.
-    # Should we check if plymouthd is running?
-    if [ -x /bin/plymouth ]; then
+    # Prompt for password with plymouth, if installed and running.
+    if [ -x /bin/plymouth ] && /bin/plymouth --has-active-vt; then
         prompt="Password [$device ($luksname)]:" 
         if [ ${#luksname} -gt 8 ]; then
             sluksname=${sluksname##luks-}
-- 
tg: (661f9a3..) upstream/crypto-plymouth (depends on: origin/master)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-11 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 22:54 [PATCH] cryptroot-ask: check that plymouth is running before use Andrey Borzenkov
     [not found] ` <1299797644-6951-1-git-send-email-arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-03-11  8:41   ` Harald Hoyer
     [not found]     ` <4D79E052.6020806-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-03-11  9:43       ` Andrey Borzenkov
     [not found]         ` <AANLkTiktfbVu4SqV0Y+2=GQ3iGJjTGKXVJDHr0mEAMjf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-03-11 10:43           ` Harald Hoyer
2011-03-11 10:45           ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox