Bug 437261 - rc.sysinit doesn't tell you which crypt device it wants a password for
rc.sysinit doesn't tell you which crypt device it wants a password for
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cryptsetup-luks (Show other bugs)
5.2
i386 Linux
medium Severity medium
: rc
: ---
Assigned To: Milan Broz
Alexander Todorov
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-13 05:57 EDT by Matthew Booth
Modified: 2013-02-28 23:06 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-09-02 07:17:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matthew Booth 2008-03-13 05:57:05 EDT
Description of problem:
I multiple crypt devices in /etc/crypttab, eg:
home        /dev/vg_local/home_crypt
var         /dev/vg_local/var_crypt

At boot time, I am prompted for 2 passwords. However, the password prompt does
not tell me which device's password I am being prompted for. It turns out that
it's the order in which they're listed in /etc/crypttab, but you just have to
remember that.

Version-Release number of selected component (if applicable):
initscripts-8.45.19.EL-1.i386
Comment 1 Bill Nottingham 2008-03-13 11:19:47 EDT
This message comes from cryptsetup-luks.
Comment 2 Bill Nottingham 2008-04-15 13:51:45 EDT

*** This bug has been marked as a duplicate of 433406 ***
Comment 3 Bill Nottingham 2008-04-15 13:52:15 EDT
Whoops, cross-product. Sorry about that.
Comment 8 Milan Broz 2009-02-11 09:38:23 EST
Fixed in cryptsetup-luks-1.0.3-5.el5.
Comment 10 Alexander Todorov 2009-05-12 04:18:04 EDT
I have / and swap on LVs which are encrypted. 

With 5.3 cryptsetup-luks and latest one from 5.4 I get:

Setting up disk encryption for: /dev/mapper/VolGroup00-LogVol00
Enter LUKS passphrase:

Setting up disk encryption for: /dev/mapper/VolGroup00-LogVol01
Enter LUKS passphrase:


This looks like verified but it's already in 5.3. If I read the patch from comment #4 correctly it should be:
Enter LUKS passphrase for /dev/mapper/VolGroup00-LogVol00:

Milan, can you clarify what was the fix?

Thanks
Comment 11 Milan Broz 2009-05-14 09:25:21 EDT
The message "Setting up disk encryption for:" is printed by initscripts/initrd an not cryptsetup itself.

cryptsetup now should print prints "Enter LUKS passphrase for /dev/mapper/VolGroup00-LogVol00".

(uu can try run it manuallly on some LUKS device)

But if you have encrypted root, you have to update initrd after uprading cryptsetup otherwise it use old version included in initrd.
Comment 12 Alexander Todorov 2009-05-27 06:51:35 EDT
I have / and swap encrypted. 

with cryptsetup-luks-1.0.3-5.el5 and latest RHEL5.4 tree I get:

Setting up disk encryption for: /dev/mapper/VolGroup00-LogVol00
Enter LUKS passphrase for /dev/mapper/VolGroup00-LogVol00:

Setting up disk encryption for: /dev/mapper/VolGroup00-LogVol01
Enter LUKS passphrase for /dev/mapper/VolGroup00-LogVol01:


moving to verified.
Comment 14 errata-xmlrpc 2009-09-02 07:17:57 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1349.html

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