Bug 459115 - Plymouth fails to decrypt secondary partitions from the first time
Summary: Plymouth fails to decrypt secondary partitions from the first time
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: plymouth
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10AnacondaBlocker
TreeView+ depends on / blocked
 
Reported: 2008-08-14 14:42 UTC by Alexander Todorov
Modified: 2008-11-05 21:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-05 21:15:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
1st message showing there's an error (7.10 KB, image/png)
2008-08-14 14:43 UTC, Alexander Todorov
no flags Details
2nd prompt for swap's passphrase (15.00 KB, image/png)
2008-08-14 14:45 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2008-08-14 14:42:53 UTC
Description of problem:
When booting with more than one encrypted partitions there is a strange looking failure. 

Version-Release number of selected component (if applicable):
f10-alpha,
plymouth-0.5.0-6.fc10

How reproducible:
Always

Steps to Reproduce:
1. Install with 2 or more encrypted partitions (/, swap, /home). In my case /, swap as LVM members.
2. Make each partition encrypted with separate password
3. Proceed with install
  
Actual results:
1. A password prompt for /. The partition is decrypted properly.
2. The same prompt for swap, /home. After entering the password:
Command failed: No key available with this passphrase
Unable to access resume device (/device/for/swap)
3. Shortly after (after udev starts I think) another message prompt appears. It looks like the one in F9 (which comes from init I think). Entering the password there works as expected.

Expected results:
when entering the password in plymouth prompt secondary partitions are decrypted and the user is not asked again for the password.

Additional info:
see attached screenshots.

Also tested with /, swap, /home - same behavior just you're not asked for /home's password at the beginning as it's not necessary

Comment 1 Alexander Todorov 2008-08-14 14:43:57 UTC
Created attachment 314321 [details]
1st message showing there's an error

Comment 2 Alexander Todorov 2008-08-14 14:45:52 UTC
Created attachment 314322 [details]
2nd prompt for swap's passphrase

notice how the message appears at the top of the screen and it's easy to overlook this. Pressing <Enter> several times makes it re-appear below the current text and the successful decrypt is clearly visible.

Comment 3 Alexander Todorov 2008-08-14 14:48:10 UTC
Maybe it's more correct to change the summary to:
fails to decrypt swap from the first time when on separate partition.

Comment 4 Ray Strode [halfline] 2008-08-26 13:46:33 UTC
There was a bug where the second password would always fail if it was longer than the first password.

Is that what you saw?

There's been a number of fixes the password asking code, including a fix for the aforementioned bug, so I'm going to close this out.

If you have anymore problems, though, please reopen.

Comment 5 Alexander Todorov 2008-08-27 06:45:29 UTC
(In reply to comment #4)
> There was a bug where the second password would always fail if it was longer
> than the first password.
> 
> Is that what you saw?
> 

Nope. Both passwords are the same size. i.e: root-pass, swap-pass, home-pass

Re-opening until I test this with a newer release to confirm if fixed.

Comment 6 Ray Strode [halfline] 2008-09-23 18:00:01 UTC
marking MODIFIED since fix is just waiting verification.

Comment 7 Bill Nottingham 2008-10-24 19:51:47 UTC
Can you please test this with beta, or one of the subsequent snapshot releases?

Comment 8 Alexander Todorov 2008-10-27 09:04:18 UTC
can't verify due to bug #468656. I can't perform the install.

Comment 9 Bill Nottingham 2008-11-04 18:58:52 UTC
Are you able to use the Preview to test this?

Comment 10 Alexander Todorov 2008-11-05 11:55:40 UTC
/home and / encrypted with 2 different passwords. Plymouth asked twice for the password for /home.

Comment 11 Alexander Todorov 2008-11-05 12:01:00 UTC
Ignore comment #10. 


/home and / encrypted with 2 different passwords, both on key slot 0. Plymouth asks only one time for password for /home then proceeds.

Comment 12 Bill Nottingham 2008-11-05 21:15:37 UTC
OK, then closing. Thanks for testing!


Note You need to log in before you can comment on or make changes to this bug.