Bug 2148445

Summary: kernel-install doesn't read /etc/machine-id properly when building OS images
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: daan.j.demeyer, davide, fedoraproject, filbranden, flepied, leif.liddy, lnykryn, michel, msekleta, ryncsn, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-252.2-591.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2148450 2148464 (view as bug list) Environment:
Last Closed: 2022-11-25 14:28:52 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:

Description Neal Gompa 2022-11-25 14:15:13 UTC
Description of problem:
When building appliance images for Fedora Linux, 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 and may cause issues in other image build tools as well.

Version-Release number of selected component (if applicable):
252.1-588.fc38

Additional info:
While this bug is filed against Rawhide, it affects all Fedora releases.

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

Comment 1 Zbigniew Jędrzejewski-Szmek 2022-11-25 14:28:52 UTC
This should be fixed already.

Comment 2 Neal Gompa 2022-11-25 14:56:19 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
> This should be fixed already.

For F36 and F37 too?

Comment 3 Zbigniew Jędrzejewski-Szmek 2022-11-25 14:57:14 UTC
No, just for rawhide.