Replies: 1 comment 5 replies
-
Or should this be raised as an RFE over at the systemd repo? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The users of mkosi are often redistributors whose config/presets should be placed under usr instead of etc. Furthermore, this also helps with sysupdate images where usr is updated but the root is a persistent volume. New default presets are not applied in that case as machine-id already exists leading to inconsistent states.
I am aware of the existence of
systemd-update-done.service
which could be used to callsystemctl preset-all
upon booting after an update, however, using that unit is more complex than simply having the correct presets on the usr partition. Another argument against that approach is thatsystemctl preset-all
will touch configs from the user when the distributor wants to enable new stuff and disable old stuff. In that case configs from the user will be overwritten (either reenabled, or disabled). Also there are a few correctness problems withsystemctl preset-all
when using templated units (systemd/systemd#18825, systemd/systemd#15065) which are easier to workaround in a finalize script than having to perform that before thesystemd-update-done.service
unit.Beta Was this translation helpful? Give feedback.
All reactions