Replies: 2 comments 5 replies
|
Or should this be raised as an RFE over at the systemd repo? |
|
This is a part of a series of bug reports related to a tool I'm building, depauditd. Reports will be cross-linked after all submissions, and have related files here at commit Adding a concrete data point to the discussion. Scenario: user installs a custom oneshot service into the image via Observed behaviour: the symlink is created by Workaround that's stable across Fedora / Arch / Ubuntu / Debian presets: ship a preset file of our own via The Documenting this here in case the discussion settles on either:
#3565 |
Uh oh!
There was an error while loading. Please reload this page.
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.servicewhich could be used to callsystemctl preset-allupon 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-allwill 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-allwhen 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.serviceunit.All reactions