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 ***