Bug 533177 - rd_LUKS_UUID=... is not respected
Summary: rd_LUKS_UUID=... is not respected
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-05 14:04 UTC by Michal Schmidt
Modified: 2010-01-28 00:53 UTC (History)
3 users (show)

Fixed In Version: 004-4.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-28 00:53:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix rd_LUKS_UUID handling in cryptroot-ask.sh again (1.00 KB, patch)
2009-11-05 14:04 UTC, Michal Schmidt
no flags Details | Diff
Proposed patch for cryptrootask (889 bytes, patch)
2009-11-05 14:47 UTC, Harald Hoyer
no flags Details | Diff

Description Michal Schmidt 2009-11-05 14:04:41 UTC
Created attachment 367614 [details]
Fix rd_LUKS_UUID handling in cryptroot-ask.sh again

Description of problem:
I have three encrypted LVs on my laptop. One of them is the root filesystem. dracut attempts to do luksOpen on all three of them during boot. I only want dracut to open the root filesystem and leave the two others alone. In the manual page I found:
       rd_LUKS_UUID=<luks uuid>
              only activate the LUKS partitions with the given UUID
This looks like exactly what I need. So I tried adding rd_LUKS_UUID=$UUID_OF_MY_ROOT_VOLUME to the kernel command line, but it had no effect. dracut kept opening all three volumes.

Version-Release number of selected component (if applicable):
dracut-002-13.4.git8f397a9b.fc12.noarch

How reproducible:
always

Steps to Reproduce:
1. Have more than one encrypted volume.
2. Use boot parameter rd_LUKS_UUID=... to select only one of them.
3. Boot.
  
Actual results:
Dracut will ignore rd_LUKS_UUID and will try to open all encrypted volumes it can find.

Expected results:
Dracut only opens the selected encrypted volume.

Additional info:
The upstream git commit ed2de829e1a1a1a3872da8ff9c50acfea7091175 from 14 Aug 2009 was supposed to fix rd_LUKS_UUID handling, but the more I look at it, the less sense it makes to me.
I propose the attached patch which fixes the bug for me.

Comment 1 Harald Hoyer 2009-11-05 14:30:30 UTC
hmm, time to think that over! thanks!

Comment 2 Harald Hoyer 2009-11-05 14:47:15 UTC
Created attachment 367628 [details]
Proposed patch for cryptrootask

Does this patch also fix your issue?

Comment 3 Michal Schmidt 2009-11-05 15:15:06 UTC
Yes it does.

And I guess I understand now why you want to use the more complicated-looking expression. It's there to make it possible to use just a few starting characters of the UUID on the command line, right?

Comment 4 Harald Hoyer 2009-11-05 15:19:02 UTC
correct :-)

Comment 5 Bug Zapper 2009-11-16 15:08:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora Update System 2009-11-27 15:12:54 UTC
dracut-003-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dracut-003-1.fc12

Comment 7 Fedora Update System 2009-12-01 04:40:19 UTC
dracut-003-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12432

Comment 8 Fedora Update System 2010-01-26 10:48:21 UTC
dracut-004-4.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dracut-004-4.fc12

Comment 9 Fedora Update System 2010-01-27 01:05:44 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1088

Comment 10 Fedora Update System 2010-01-28 00:51:01 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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