[systemd-devel] [PATCH] tmpfiles: don't apply --create to /dev twice during boot

Lennart Poettering lennart at poettering.net
Wed Jul 24 07:09:02 PDT 2013


On Wed, 24.07.13 15:49, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> 
> On Wed, Jul 24, 2013 at 03:32:55PM +0200, Tom Gundersen wrote:
> > Instead allow negation in the prefix filtering, to restrict the
> > second call to apply to everything but /dev:
> > 
> >   systemd-tmpfiles --prefix=!/dev --create --remove
> It's unfortunate that ! is a shell meta character. Maybe
> - would be better? This way when someone takes the line
> from the unit file and executes it in their shell, they
> won't be surprised by the shell messing up their command.

I'd much rather prefer --exclude-prefix=.

Magic chars generaly suck. Sometimes that's acceptible to keep the
number of options down, but I don't think this applies in this case, do
just add an explicit option, please.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list