Red Hat Bugzilla – Bug 461416
plymouth ask-for-password --command sends garbage to command
Last modified: 2013-02-28 23:06:51 EST
initcript contain this line (system with encrypted PV)
plymouth ask-for-password --command "cryptsetup luksOpen /dev/sda2 luks-sda2"
Running in text mode, it requires password twice, because first attempt fails (even witout touching keyboard!)
As I found, cryptsetup always receive on standard input 4 chars, no idea where they are from, but these are completely garbage not password.
Just tried to replace crypsetup with simple test program
while (read(0, &c, 1) == 1)
And I see the same.
Version-Release number of selected component (if applicable):
Plymouth ask-for-password should probably drain the output before asking password again.
Are you still seeing this with the latest plymouth?
I did some fixes on friday, including:
* Fri Sep 5 2008 Ray Strode <firstname.lastname@example.org> 0.5.0-0.2008.09.05.1
- Fix some confusion with password handling in details plugin
Make sure you rebuild your initrd after updating with
/sbin/mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
Seems that it works with 0.6.0-0.2008.09.05.3.f10, but tested on other confuguration.
I'll verify it on my test system later this week.
marking MODIFIED waiting verification
Works with F10-beta, thanks.