fix: give every VM its own machine ID - #18
Merged
Conversation
systemd's and dbus's package configuration during the apt layer bakes a machine ID into /etc/machine-id and /var/lib/dbus/machine-id. Both survive into every VM created from the image, so a whole fleet shares one identity, which defeats anything that assumes machine IDs are unique (systemd's FixedRandomDelay=, for one). Empty the file at the end of the build so systemd generates one per VM in early boot. Emptied rather than removed: systemd treats an absent /etc/machine-id as first boot and presets all units, which would re-enable the ones this image disables. Ported from exeuntu commit e530b2f (17 Aug 2026), the only platform-wiring change upstream since exeslim was forked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package configuration during the apt layer bakes a machine ID into
/etc/machine-idand/var/lib/dbus/machine-id, so every VM created from this image shares one identity. That defeats anything assuming machine IDs are unique, such as systemd'sFixedRandomDelay=.This empties the file as the last step of the build so systemd generates a fresh ID per VM in early boot. It is emptied rather than removed: systemd treats an absent
/etc/machine-idas first boot and presets all units, which would re-enable the ones this image disables.Ported from exeuntu commit e530b2f. I checked every upstream Dockerfile commit since exeslim was forked on 26 Jul; this is the only platform-wiring change. The rest (Go bump,
ghfrom release binary, OpenCode bundling) is agent-workstation only and does not apply.Also adds a row to the README correlation table.