All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Andrey Borzenkov <arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] cryptroot-ask: check that plymouth is running before use
Date: Fri, 11 Mar 2011 11:45:41 +0100	[thread overview]
Message-ID: <4D79FD55.30108@redhat.com> (raw)
In-Reply-To: <AANLkTiktfbVu4SqV0Y+2=GQ3iGJjTGKXVJDHr0mEAMjf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Am 11.03.2011 10:43, schrieb Andrey Borzenkov:
> On Fri, Mar 11, 2011 at 11:41 AM, Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Am 10.03.2011 23:54, schrieb Andrey Borzenkov:
>>> 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-}
>>
>> Very nice! Thank you!
>>
> 
> I think attached patch still makes sense in addition to (or probably
> even instead of) this one.

pushed both

      parent reply	other threads:[~2011-03-11 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D79FD55.30108@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=arvidjaar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.