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

Colin Guthrie gmane at colin.guthr.ie
Wed Jul 24 07:04:02 PDT 2013

'Twas brillig, and Zbigniew Jędrzejewski-Szmek at 24/07/13 14:49 did
gyre and gimble:
> 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 think overloading - might be a bad idea...

Although the simplicity of a prefix char is nice, perhaps it's better to
just be explicit here and add a second option --prefix-exclude (or
--prefix-skip) or similar?



Colin Guthrie

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/

More information about the systemd-devel mailing list