-
Notifications
You must be signed in to change notification settings - Fork 8
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
generators: Don't write files other than unit files #84
Conversation
This pulls in flatcar/bootengine#84 to prepare for a systemd update.
Systemd now executes generators in a sandbox to make sure they only generate units and don't have other side effects: https://github.com/systemd/systemd/blob/166bcaf95fbdd036f99705d2204138c36eb95836/NEWS#L1583 Port our generator usage to comply with the new behavior so that we can update our systemd version. Move the Ignition preparations into the ignition-setup script, setup the fsck overwrite unit at install time, and remove the mkdir calls because Mount units will do this when needed.
7be7baa
to
dd8c70b
Compare
This pulls in flatcar/bootengine#84 to prepare for a systemd update.
# Set up by 10usr-generator/module-setup.sh | ||
[Unit] | ||
DefaultDependencies=no | ||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=true |
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.
I'm wondering if this should be kept more-or-less in sync with systemd - upstream seems to have more stuff in the unit.
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.
Or maybe we should carry a patch to systemd, so no overwriting needs to be done here?
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.
This is a minimal unit, to have it start instead of masking it. What we would need upstream is a way of resetting the After= dependencies through a drop-in…
This pulls in flatcar/bootengine#84 to prepare for a systemd update.
Systemd now executes generators in a sandbox to make sure they only generate units and don't have other side effects:
https://github.com/systemd/systemd/blob/166bcaf95fbdd036f99705d2204138c36eb95836/NEWS#L1583
Port our generator usage to comply with the new behavior so that we can
update our systemd version. Move the Ignition preparations into the
ignition-setup script, setup the fsck overwrite unit at install time,
and remove the mkdir calls because Mount units will do this when needed.
How to use
Testing done
see scripts PR