cryptsetup passphrase prompt at boot not working if waiting too long (w/o usplash)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cryptsetup
I have a LUKS-encrypted /home device (which in turn is a LVM partition). This setup worked very well until updating to 9.10.
When booting, I am prompted for the passphrase (I always boot with the "nosplash" option). This passphrase prompt is soon spoiled by messages "waiting for <some mountpoint>", so the boot seems to continue.
If ignoring these messages and just entering the passphrase (hitting the enter key in the end) works, if I am fast enough(!).
However, waiting for some seconds (maybe 20), it is *not* possible to correctly enter the passphrase any more: hitting the enter key after entering the passphrase does not start a new line or trigger any other notable action from cryptsetup (i.e., I don't get any "command failed" or "key slot xxx unlocked" messages). Hitting the enter key some times more does the job but the passphrase is rejected and asked for again up to three times. However, these new prompts always show the same behavior: hitting the enter key once does not start a new line or trigger the cryptsetup to continue as it should. Only hitting it some more times does but the passpharse is always rejected, even if entered correctly.
It seems that something in the subsequent boot chain partly steals keyboard focus.
Update 1 [see my comment 2 below]: This also affects recovery mode.
Update 2: It is also worth to note that after enetring the wrong password three times, I have no possibility whatsoever to logon, even though this should be possible as only the /home partition is encrypted. I have to reboot and try again until I succeed. *Very* annoying.
Update 3: It seems that specifying the "noearly" option in /etc/crypttab is a workaround for me (not systematically tested though).
description: | updated |
tags: | added: ubuntu-boot-experience |
summary: |
cryptsetup passphrase prompt at boot not working if waiting too long + (w/o usplash) |
Changed in cryptsetup (Ubuntu): | |
status: | Incomplete → Triaged |
Hi there,
got the same problem here. It seems if you wait for some time the message from mountall get hold of the console. As an (intermediate) solution you can hit enter once after waiting some time and then enter your passphrase and hit enter. This works for me.
Since 9.10 and the new upstart mechanism cryptsetup and mountall do not really work together.