Bug#382375: [Pkg-cryptsetup-devel] Bug#382375: passphrase prompt gets drowned during initramfs

David Härdeman david at 2gen.com
Tue Aug 15 13:54:32 UTC 2006


On Thu, August 10, 2006 17:19, martin f krafft said:
> If cryptsetup mounts my encrypted root partition during initramfs
> boot, it asks me for the luks passphrase. However, the kernel also
> spits messages to the screen, so the prompt gets lost in a flood of
> kernel output. This cause me to suspect some grave problem staring
> at the screen and thinking the system has hung itself up, when all
> it wanted was the passphrase.
>
> Not sure how to fix that, actually...

I can think of two solutions:

1) Redirect kernel messages to another vt during passphrase entry

2) Change to another "clean" vt, deal with passphrase, switch back

Both approaches would break usplash, but it doesn't support user input
anyway. I'm currently leaning towards the second option which would need
"fgconsole" (to know which vt to switch back to) and "chvt" from the kbd
package.

I'll try to find time to test this approach later this week.

Regards,
David






More information about the Pkg-cryptsetup-devel mailing list