On Sat, 10.05.14 06:56, Michael Biebl (bi...@debian.org) wrote:

> Am 07.05.2014 21:19, schrieb Gero Treuner:
> > On Wed, May 07, 2014 at 02:32:40PM +0200, Michael Biebl wrote:
> >> Please try the attached net.agent (copy it to /lib/udev/net.agent and
> >> make it executable).
> >> It escapes the interface name before starting an instance of the
> >> service. If you want to run systemctl status, make sure to quote the
> >> name like this:
> >>
> >> systemctl status "ifup@veth\x2ddevmachine.service"
> >>
> >> Please report if that works for you.
> > 
> > The patch works fine. Thanks for all.
> 
> Thanks for testing.
> 
> Thinking more about it, a nicer solution would be, if systemd would
> offer another specifier [0], basically the inverse of %I.
> I.e. you pass a (unescaped) string as instance name and systemd does the
> escaping which then can be used in the unit file.
> 
> Let's call that specifier %Y for now.

Not following here?

Note that unit names cannot contain unescaped strings. THis is because they
are stored in the file system. Hence you either have to escape strings
manually before including them in unit names, or you let "systemctl" do
this for you automatically, because it detects that you passed an
incompletely escaped string on the command line. But the latter really
just is synctactic sugar to make things easy to use for admins.

So, on the lower-level the string is always escaped, and then we provide
%i and %I to refer to it from the unit file, one leaves it escaped as it
is, the other one removes the escaping. But what should %Y do then?

Lennart

-- 
Lennart Poettering, Red Hat


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to