RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 985160 - dracut ignores cmdline root= path
Summary: dracut ignores cmdline root= path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dracut
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: dracut-maint
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-17 01:22 UTC by Alex Williamson
Modified: 2014-06-18 03:55 UTC (History)
3 users (show)

Fixed In Version: dracut-033-144.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:31:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (83.80 KB, image/jpeg)
2013-07-17 01:22 UTC, Alex Williamson
no flags Details
rdsosreport.txt (4.45 MB, text/plain)
2014-02-17 16:47 UTC, Jan Stodola
no flags Details

Description Alex Williamson 2013-07-17 01:22:27 UTC
Created attachment 774574 [details]
screenshot

Description of problem:
RHEL7 decided it wanted to make a logical volume named "root" during install, which doesn't match my naming scheme at all.  Post install I renamed the logical volume to lv_rhel7 and updated the cmdline in grub.  Dracut doesn't seem to use care what root= value is passed on the cmdline and still look for the, now non-existent, root logical volume... What's the point of root=?

Version-Release number of selected component (if applicable):
rhel7

How reproducible:
100%

Steps to Reproduce:
1. Rename your root logical volume
2. Update grub cmdline to reflect the new name
3. Attempt to reboot

Actual results:
See attached image

Expected results:
root= should override whatever path is embedded in the initrd.

Additional info:

Comment 2 Harald Hoyer 2013-07-31 15:37:31 UTC
To get to the system again, boot with the rescue entry, change root=, run
# dracut --regenerate-all -f

And retry with the normal grub entry, with dracut-031-4.git20130731.el7, where this is hopefully fixed.

# dracut -f

Comment 4 Jan Stodola 2014-02-17 16:47:41 UTC
Created attachment 864198 [details]
rdsosreport.txt

Retested with dracut-033-124.el7, but system doesn't boot after changing LV name with rootfs:

[root@localhost ~]# lvrename rhel root rhel7
  Renamed "root" to "rhel7" in volume group "rhel"
[root@localhost ~]#

modifying kernel cmdline and reboot:

dracut:/# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-86.el7.x86_64 root=/dev/mapper/rhel-rhel7 ro rd.lvm.lv=rhel/rhel7 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=rhel/swap vconsole.keymap=us crashkernel=auto rhgb quiet LANG=en_US.UTF-8 rd.debug console=ttyS0
dracut:/# lvm lvs
  LV    VG   Attr       LSize  Pool Origin Data%  Move Log Cpy%Sync Convert
  rhel7 rhel -wi-a----- 17.51g                                             
  swap  rhel -wi-a-----  2.00g                                             
dracut:/#

rdsosreport.txt is attached.

Comment 5 Harald Hoyer 2014-02-26 14:32:19 UTC
please retry with dracut-033-137.el7

Comment 6 Jan Stodola 2014-02-26 14:59:27 UTC
Retested with dracut-033-137.el7, system booted correctly after changing root=, rd.lvm.lv= and updating /etc/fstab with the new LV name.

Comment 8 Jan Stodola 2014-03-05 09:12:17 UTC
Retested with dracut-033-145.el7, this issue is fixed.

Moving to VERIFIED.

Comment 9 Ludek Smid 2014-06-13 11:31:15 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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