Bug 1934738

Summary: New org.osbuild.ostree.preptree stage does not properly detect machine-id
Product: Red Hat Enterprise Linux 8 Reporter: Christian Kellner <ckellner>
Component: osbuildAssignee: Christian Kellner <ckellner>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: akoutsou, lmiksik, tgunders, xiaofwan
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osbuild-27-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1937864 (view as bug list) Environment:
Last Closed: 2021-05-18 15:44:03 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:
Bug Depends On:    
Bug Blocks: 1937864    

Description Christian Kellner 2021-03-03 18:43:03 UTC
The new org.osbuild.ostree.preptree stage, added in osbuild 25, is used to build container that contain ostree commits. It includes logic to detect if /etc/machine-id is present and passes this information on to rpm-ostree. But the detection is broken in osbuild 25 since the check is done after /etc is moved to /usr/etc.

Comment 8 Xiaofeng Wang 2021-03-25 13:33:50 UTC
Verified on osbuild-27-1.el8.noarch.rpm and osbuild-composer-28.3-1.el8.x86_64.rpm.

Comment 10 errata-xmlrpc 2021-05-18 15:44:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (osbuild bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1825