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 2228847 - missing root disk parameter with BIOS mode drops to emergency mode
Summary: missing root disk parameter with BIOS mode drops to emergency mode
Keywords:
Status: CLOSED DUPLICATE of bug 2227722
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: grub2
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bootloader engineering team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-03 11:51 UTC by Andreas Paul
Modified: 2023-08-09 07:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-09 07:21:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
emergency mode after first boot with BIOS mode VM (63.61 KB, image/png)
2023-08-03 11:51 UTC, Andreas Paul
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-164750 0 None None None 2023-08-07 15:37:04 UTC

Description Andreas Paul 2023-08-03 11:51:21 UTC
Created attachment 1981470 [details]
emergency mode after first boot with BIOS mode VM

Description of problem:
After installing CentOS 9 Stream on a server with BIOS mode (non-EFI) the first boot after the successful installation does end up in the emergency mode caused the failed start of the initrd-switch-root.service
See also https://forums.centos.org/viewtopic.php?f=54&t=80316
The problem seems to have to do with grub as the /proc/cmdline does not contain the root parameter with the UUID of the disk when using BIOS mode, but still contains the kickstart from our automated installer parameters like inst.ks or ksdevice, like it was never updated.
This started happening around the latest release of the ISO and installer kernel on the 2023-07-27

Version-Release number of selected component (if applicable):
$ rpm -qa|grep grub
grub2-common-2.06-67.el9.noarch
grub2-tools-minimal-2.06-67.el9.x86_64
grub2-tools-2.06-67.el9.x86_64
grubby-8.40-63.el9.x86_64
grub2-efi-x64-2.06-67.el9.x86_64


How reproducible:


Steps to Reproduce:
1. Create VM or use hard-ware server with BIOS mode
2. Install CentOS using the latest ISO
3. Reboot system after installation

Actual results:
Drops to emergency mode shell with failed initrd-switch-root.service caused by missing /sysroot

Expected results:
Normal boot with ending in user login prompt

Additional info:
https://forums.centos.org/viewtopic.php?f=54&t=80316

Comment 1 echo 2023-08-07 15:33:41 UTC
I ran into the same issue and it looks like the /boot/loader/entries/XXX.conf didn't install properly, same as bug 2227722

Comment 2 Marta Lewandowska 2023-08-08 15:41:38 UTC
Hi,
There is a new build of grub with the patch reverted. If you could please try grub2-2.06-68.el9 to make sure that it works for you..?

Comment 3 echo 2023-08-09 01:37:18 UTC
(In reply to Marta Lewandowska from comment #2)
> Hi,
> There is a new build of grub with the patch reverted. If you could please
> try grub2-2.06-68.el9 to make sure that it works for you..?

New iso is working on both VM and real hardware

Comment 4 Marta Lewandowska 2023-08-09 07:21:03 UTC
Thank you for confirming! I am closing this one as a duplicate of 2227722, which I also just closed, since it's working now.

*** This bug has been marked as a duplicate of bug 2227722 ***


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