-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure /etc/machine-id is generate as early as possible in systemd #1178
Conversation
Fixes kairos-io/kairos#3038 Deprecates mudler/yip#193 Signed-off-by: Dimitris Karakasilis <[email protected]>
# https://www.freedesktop.org/software/systemd/man/latest/systemd-machine-id-commit.service.html | ||
# https://www.freedesktop.org/software/systemd/man/latest/systemd-machine-id-setup.html | ||
# Mask the commit service to avoid systemd messing with machine-id. | ||
- ln -s /dev/null /etc/systemd/system/systemd-machine-id-commit.service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally, since this service will kick in later, it should have no effect, so we shouldn't need to mask it but better safe than sorry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmmh, cant we mask it on the base images directly? or use the systemctl plugin? https://github.com/mudler/yip?tab=readme-ov-file#stagesstageidstepnsystemctl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we should run it on the rootfs, which is the earliest stage we got I think, so we mask it asap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good points, pushed a commit
#1178 (comment) Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Fixes kairos-io/kairos#303
Deprecates mudler/yip#193