Bug 2148450

Summary: kernel-install doesn't read /etc/machine-id properly when building OS images
Product: Red Hat Enterprise Linux 9 Reporter: Neal Gompa <ngompa13>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, daan.j.demeyer, davide, dtardon, extras-qa, fedoraproject, filbranden, flepied, jamacku, jwboyer, leif.liddy, lnykryn, michel, msekleta, ryncsn, ssahani, s, systemd-maint-list, systemd-maint, yuwatana, zbyszek
Target Milestone: rcKeywords: Bugfix, TestOnly, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-252-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2148445 Environment:
Last Closed: 2023-05-09 08:22:21 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: 2138081    
Bug Blocks:    

Description Neal Gompa 2022-11-25 14:18:02 UTC
Description of problem:
When building appliance images for CentOS Stream, kernel-install does not correctly handle the case for an empty /etc/machine-id, nor does it handle when the file is set with the value "uninitialized" correctly.

This causes problems when trying to build images with kiwi using systemd-boot from EPEL and may cause issues in other image build tools as well.

Version-Release number of selected component (if applicable):
250-11.el9

Additional info:
There are two upstream commits to fix this:
* https://github.com/systemd/systemd/commit/883e7cbfc0dba6c81338e7924419b5cbb0cba0b2
* https://github.com/systemd/systemd/commit/305dd91adfde332e7e5c1b2470edb32774f9a032

Comment 3 errata-xmlrpc 2023-05-09 08:22:21 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 (systemd 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-2023:2531