-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Design discussion: MountRes #745
Comments
Okay here are some abridged comments from the PR:
So looking at systemd.mount I see: https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html#Options This resource doesn't smell strongly of that... Should it? Did I miss something? I think the approach of writing out a few more pseudo-code examples of how we'd use this would be beneficial... |
We can expose the additional options as resource parameters. In fstab they will be represented as "x-systemd" pseudo-options. The current proposed patch does not do this. Reading about the special fstab options, I notice that the systemd-fstab-generator offers some additional options like x-systemd.makefs that make it very easy to spawn additional helper units that do convenient things. This seems to make fstab more worthwhile. (I don't see us building the same functionality into mgmt on the resource level. It should be feasible to create an mcl package that handles all that.) |
You mentioned in Matrix that you see a need to have a I can see it, but it would be nice to have your line of thought documented here. |
My general perspective is that the |
Ah but then most systemd resources are essentially wrappers for low level system functionality. A service is just a glorified process or two in the end 😅 If we want to have a mount resource that does not concern itself with fstab nor unit files, we could indeed teach SvcRes to do that. On the other hand, we could have a very simple MountRes that wraps SvcRes like in the proposed patch (and avoid adding cruft to the interface of SvcRes), and this in turn could be wrapped by variants that add fstab or systemd unit backing. |
For addressing #525 I proposed a patch that removes fstab support in favor of creating unit files per mount. https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html discourages fstab wrt. tooling. But then of course, config management aims to insert itself seamlessly in manual workflows, so I see the point in holding on to fstab as well.
I could see it work as follows:
The text was updated successfully, but these errors were encountered: