Bug 2148464 - kernel-install doesn't read /etc/machine-id properly when building OS images
Summary: kernel-install doesn't read /etc/machine-id properly when building OS images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-25 15:02 UTC by Neal Gompa
Modified: 2023-03-07 01:33 UTC (History)
17 users (show)

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:
Clone Of: 2148445
Environment:
Last Closed: 2023-03-03 19:40:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 25388 0 None Merged Fix reading /etc/machine-id in kernel-install 2023-01-23 16:57:21 UTC
Github systemd systemd pull 25407 0 None Merged Handle MACHINE_ID=uninitialized 2023-01-23 16:57:21 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.