Re: Antw: Re: Re: "bad" status for genersated target; why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
SMILE 

20 rue des Jardins
92600 Asnières-sur-Seine

Jérémy ROSEN
Architecte technique

email jeremy.rosen@xxxxxxxx 
phone  +33 6 88 25 87 42 
url http://www.smile.eu

Twitter Facebook LinkedIn Github

Découvrez l’univers Smile, rendez-vous sur smile.eu
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux