After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724833 - /etc/machine-id versus ostree's immutable initramfs images
/etc/machine-id versus ostree's immutable initramfs images
Status: RESOLVED FIXED
Product: ostree
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: OSTree maintainer(s)
OSTree maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-20 21:10 UTC by Colin Walters
Modified: 2015-06-04 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2014-02-20 21:10:43 UTC
OSTree wants the initramfs images to be immutable and generated on a build server.
systemd wants /etc/machine-id to go in the initramfs.

The intersection of these - gnome-continuous and rpm-ostree hardcode machine-id.  This is suboptimal.

Possible fixes:

 - Teach systemd-in-dracut to synthesize a machine-id in the initramfs, and copy it to /etc when the system boot
 
 - Add a new "machineid=xxxx" kernel argument.  OSTree would generate one if it didn't exist.  Systemd would learn to read it (probably write it on boot to /run, so other things picked it up)

 - Concatenate initramfs images: I think I saw some people discussing this elsewhere.  Then we could make an *additional* initramfs that contains /etc/machine-id per client, and have that be an overlay on top of the stock dracut (or whatever) generated initramfs.
Comment 1 Colin Walters 2014-03-18 19:36:18 UTC
pjones says that we can concatenate initramfs, and most bootloaders support specifying multiple initramfs.
Comment 2 Colin Walters 2015-06-04 21:47:23 UTC
This apparently works today with systemd:

https://github.com/projectatomic/rpm-ostree/pull/140