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.
hmm, time to think that over! thanks!
Created attachment 367628 [details] Proposed patch for cryptrootask Does this patch also fix your issue?
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?
correct :-)
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
dracut-003-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/dracut-003-1.fc12
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
dracut-004-4.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/dracut-004-4.fc12
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
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.