well, in another thread, it was discussed why generated should never have an install section and why enablement does not make sense for them...
so no it's not a bug.
Arguably, yes, generators do need to care about symlinks, though, maybe the could call "systemctl add-wants --transient" to do the job,
but at that point, that's more pedantic than practical. If you write a generator, your systemd-fu should be high enough to know and
understand systemd's symlink mechanisms...
Le mer. 15 mai 2019 à 11:25, Andrei Borzenkov <arvidjaar@xxxxxxxxx> a écrit :
On Wed, May 15, 2019 at 12:17 PM Lennart Poettering
<lennart@xxxxxxxxxxxxxx> wrote:
> >
> > To me it's the most horrible part of systemd: Messing with
> > symlinks...
>
> You should never need to. For all relevant operations there are
> "systemctl" verbs, i.e. "systemctl enable", "systemctl disable",
> "systemctl add-wants" and so on.
>
So the following is a bug?
localhost:~ # systemctl enable usr-local.mount
Failed to enable unit: Unit /run/systemd/generator/usr-local.mount is
transient or generated.
localhost:~ # exit
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel