Bug 2243303

Summary: /etc/os-release shows wrong release on x86_64 IoT
Product: [Fedora] Fedora Reporter: Geoffrey Marr <gmarr>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: dtardon, fedoraproject, filbranden, lnykryn, msekleta, ryncsn, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-20 08:59:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1269538    

Description Geoffrey Marr 2023-10-11 17:01:58 UTC
Booted Fedora-IoT-ostree-x86_64-39-20231010.0.iso on baremetal. Ran through installer process like normal using defaults and making both a root and user account. Boot into installed system and noticed that the entry in grub showed 20231006 instead of 20231010. Checked /etc/os-release and PRETTY_NAME field shows "Fedora Linux 39.20231006.0 (IoT Edition Prerelease)".

Reproducible: Always

Steps to Reproduce:
1. Install Fedora-IoT-ostree-x86_64-39-20231010.0.iso.
2. Run "cat /etc/os-release"
3. View PRETTY_NAME field.
Actual Results:  
PRETTY_NAME field shows "Fedora Linux 39.20231006.0 (IoT Edition Prerelease)".

Expected Results:  
PRETTY_NAME field shows "Fedora Linux 39.20231010.0 (IoT Edition Prerelease)"

Comment 1 David Tardon 2023-10-20 08:59:32 UTC
/etc/os-release is part of fedora-release package and it's created when the package is built. Hence, the values in os-release are relevant to the date of the last build of fedora-release, not to the date of production of an ostree ISO (which, I assume, happens more often).