Bug 2148464

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 ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: daan.j.demeyer, davide, dtardon, extras-qa, fedoraproject, filbranden, flepied, leif.liddy, lnykryn, michel, msekleta, ryncsn, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-253.1-3.fc39 systemd-253.1-4.fc39 systemd-251.13-4.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2148445 Environment:
Last Closed: 2023-03-03 19:40:55 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 15:02:58 UTC
+++ This bug was initially created as a clone of Bug #2148445 +++

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):
251.8-586.fc37

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 1 Fedora Update System 2023-03-03 19:26:51 UTC
FEDORA-2023-cbe6a88b1d has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-cbe6a88b1d

Comment 2 Fedora Update System 2023-03-03 19:38:00 UTC
FEDORA-2023-a860cf64db has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a860cf64db

Comment 3 Fedora Update System 2023-03-03 19:40:55 UTC
FEDORA-2023-cbe6a88b1d has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2023-03-03 19:43:38 UTC
FEDORA-2023-a860cf64db has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2023-03-03 19:54:56 UTC
FEDORA-2023-f72fbc711a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f72fbc711a

Comment 6 Fedora Update System 2023-03-04 03:10:08 UTC
FEDORA-2023-f72fbc711a has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f72fbc711a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f72fbc711a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-03-05 02:31:23 UTC
FEDORA-2023-f72fbc711a has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f72fbc711a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f72fbc711a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-03-07 01:33:08 UTC
FEDORA-2023-f72fbc711a has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.