Send plymouth mailing list submissions to
        plymouth@lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.freedesktop.org/mailman/listinfo/plymouth
or, via email, send a message with subject or body 'help' to
        plymouth-requ...@lists.freedesktop.org

You can reach the person managing the list at
        plymouth-ow...@lists.freedesktop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of plymouth digest..."


Today's Topics:

   1. any way to wait from shell for splash screen be set up?
      (LAHAYE Olivier)
   2. RE:Plymouth password handling. (LAHAYE Olivier)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 Jul 2018 14:04:21 +0000
From: LAHAYE Olivier <olivier.lah...@cea.fr>
To: "plymouth@lists.freedesktop.org" <plymouth@lists.freedesktop.org>
Subject: any way to wait from shell for splash screen be set up?
Message-ID:
        <01edeeae5da8584caad628aa5b06179a4f221...@exdag0-a3.intra.cea.fr>
Content-Type: text/plain; charset="iso-8859-1"


Hi,

Is there a way to make sure that plymouthd has setup the splash?

I've tryed plymouth --ping, but that doesn't help.
It answers ok (plymouthd running) eventhough the splash is not yet setup.
Thus all "plymouth update --status="...." are not rendered and lost.

My ugly work around is to wait 0.5 seconds (arbitrary) after having set 
/etc/plymouth/plymouthd.conf to
[Daemon]
Theme=systemimager
ShowDelay=0
DeviceTimeout=0.1

Ideally a reliable solution that would work from CentOS-6 up to latests distros 
would be cool.

Thanks for any help in advance.

Cheers,

--
   Olivier LAHAYE
   CEA DRT/LIST/DIR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.freedesktop.org/archives/plymouth/attachments/20180711/839e0eb9/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 11 Jul 2018 13:55:03 +0000
From: LAHAYE Olivier <olivier.lah...@cea.fr>
To: "plymouth@lists.freedesktop.org" <plymouth@lists.freedesktop.org>
Subject: RE:Plymouth password handling.
Message-ID:
        <01edeeae5da8584caad628aa5b06179a4f221...@exdag0-a3.intra.cea.fr>
Content-Type: text/plain; charset="iso-8859-1"

After more tests, the following works fine on Fedora-28, but not on CentOS-7.
SSHPASS="$(plymouth ask-for-password --prompt 'Please, enter password:')"

I'll try to identify where is the problem and maybe file a bug against plymouth.
1st strace indicates that I hit:
ply-boot-server.c:ply_boot_connection_send_answer():285:ply_trace ("could not 
finish writing answer: %m");
While plymouthd server was able to get the password.
It seems unable to give it back to the plymouth command.

Cheers,

--
   Olivier LAHAYE
   CEA DRT/LIST/DIR
________________________________
De : plymouth [plymouth-boun...@lists.freedesktop.org] de la part de LAHAYE 
Olivier
Envoyé : mardi 3 juillet 2018 18:22
À : plymouth@lists.freedesktop.org
Objet : [PROVENANCE INTERNET] Plymouth password handling.


Hi,

I've written a complex them to handle systemimager imaging process.
Everythings works perfectly and I can even image a system and finish boot 
without rebooting.

I'm now in the process og having deployemnt onver an ssh tunnel.
My dracut module is able to handle local ssh keys, retreive a public key using 
curl or rsync, but a more simple way would be to ask for ssh password.

I'm testing on CentOS-7 latest update.

My theme (script) works fin asking for a password, but I'm totally unable to 
retreive it or use it.

I've tried 3 aproaches.
1/ without using the --command => unable to retreive the password from standard 
input.
SSHPASS="$(plymouth ask-for-password --prompt 'Please, enter password:')" 
sshpass -e ssh oscar-server 'hostname' > /tmp/result
=> Doesn't work. $SSHPASS is empty.

plymouth ask-for-password --prompt 'Please, enter password:' > /tmp/password
=> creates an empty password.

2/ using the --command => I must type the password twice???!!!
plymouth ask-for-password --prompt "Please, enter password:" --command "ssh 
my-server 'hostname'" --number-of-tries=3 > /tmp/result
=> 1st time I tiype password: the password dialog close when I hit enter. Then 
I type blindly and it works :-/
In text mode, I see the plymouth password prompt, I type the password, hit 
enter and then I get the ssh password propt, I reenter password and it works.

3/ using systemd-ask-password => doesn't display password dialog under plymouth 
and not available on centos-6...
SSHPASS="$(systemd-ask-password 'SSH password')" sshpass -e ssh oscar-server 
'hostname' > /tmp/result
 => Works in text mode. In GUI mode, no password dialog appears.
=> Not available on centos-6 (that I have to support as it's still maintained).

Any advise or help would be greatly apreciated.

github theme source:
https://github.com/finley/SystemImager/tree/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme

Inside this directory, my plymouth_test.sh script.

--
   Olivier LAHAYE
   CEA DRT/LIST/DIR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.freedesktop.org/archives/plymouth/attachments/20180711/4c74ce4c/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
plymouth mailing list
plymouth@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/plymouth


------------------------------

End of plymouth Digest, Vol 88, Issue 2
***************************************

Reply via email to