Bug 426722

Summary: encrypted fs patch breaks non-encrypted root-by-label
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: dcantrell, rvokal, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-09 17:43:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Nottingham 2007-12-25 01:34:19 UTC
commit a6a0564dc8f0b4de10f01ec35fea3ccd75ffa849
Author: Peter Jones <pjones>
Date:   Thu Nov 29 14:25:19 2007 -0500

    Add support for luks-based encrypted filesystems

contains:

@@ -1081,7 +1090,7 @@ if [ "x$PROBE" == "xyes" ]; then
             "$rootdev" != "${rootdev##UUID=}" ]; then
         rootopts=$(echo $rootopts | sed -e 's/^r[ow],//' -e 's/,_netdev//' -e
's/_netdev//' -e 's/,r[ow],$//' -e 's/,r[ow],/,/' -e 's/^r[ow]$/defaults/' -e
's/$/,ro/')
         physdev=$(findblockdevinsys "$rootdev")
-        physdev=${physdev##*/}
+        physdev=${physdev##*/dev/}
         if [ -n "$physdev" ]; then
             vecho "Found root device $physdev for $rootdev"
         else

Since physdev at this point is returning /sys/block/sda/sda2, this doesn't prune
the device name at all, and it therefore fails to find the root FS driver.

Reverting this bit fixes it.

Comment 1 Peter Jones 2008-01-09 17:43:14 UTC
Should be fixed in 6.0.28-1.fc9 .