Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 426722 - encrypted fs patch breaks non-encrypted root-by-label
encrypted fs patch breaks non-encrypted root-by-label
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-12-24 20:34 EST by Bill Nottingham
Modified: 2014-03-16 23:11 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-01-09 12:43:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2007-12-24 20:34:19 EST
commit a6a0564dc8f0b4de10f01ec35fea3ccd75ffa849
Author: Peter Jones <pjones@redhat.com>
Date:   Thu Nov 29 14:25:19 2007 -0500

    Add support for luks-based encrypted filesystems


@@ -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
         physdev=$(findblockdevinsys "$rootdev")
-        physdev=${physdev##*/}
+        physdev=${physdev##*/dev/}
         if [ -n "$physdev" ]; then
             vecho "Found root device $physdev for $rootdev"

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 12:43:14 EST
Should be fixed in 6.0.28-1.fc9 .

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