Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2229122

Summary: Minimal install doesn't boot anymore
Product: Red Hat Enterprise Linux 9 Reporter: Sandro Bonazzola <sbonazzo>
Component: grub2Assignee: Bootloader engineering team <bootloader-eng-team>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jstodola, jwboyer
Target Milestone: rcKeywords: Regression
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-04 09:58:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
rdsosreport
none
journal
none
anaconda kickstart generated by the installer none

Description Sandro Bonazzola 2023-08-04 09:30:24 UTC
Created attachment 1981609 [details]
rdsosreport

Performed a minimal install using latest boot image for CentOS Stream 9, selected minimal install.
At reboot the system enters recovery shell.
journalctl -b -p warning shows:
Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.


Version-Release number of selected component (if applicable):
https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-20230727.1-x86_64-boot.iso

How reproducible: 100%
happened 3 times out ot 3 tests


Steps to Reproduce:
1. install minimal CentOS Stream

Actual results:
Doesn't boot

Expected results:
Boot

Additional info:

Comment 1 Sandro Bonazzola 2023-08-04 09:31:08 UTC
Created attachment 1981610 [details]
journal

Comment 2 Sandro Bonazzola 2023-08-04 09:33:47 UTC
Created attachment 1981611 [details]
anaconda kickstart generated by the installer

Comment 3 Sandro Bonazzola 2023-08-04 09:35:46 UTC
# guestfish --rw -i -a centos-stream9.qcow2 ls /etc/os-release
libguestfs: error: ls0: opendir: /etc/os-release: Not a directory

so yes, the os-release file is missing. Perhaps it's more like an anaconda bug

Comment 4 Sandro Bonazzola 2023-08-04 09:41:07 UTC
weird, 
# guestfish --rw -i -a centos-stream9.qcow2 sh "ls /etc/os-release"
/etc/os-release

# guestfish --rw -i -a centos-stream9.qcow2 sh "cat /etc/os-release"
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

so it's there. No clue on why it's not being found at boot.

Comment 5 Jan Stodola 2023-08-04 09:58:42 UTC

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