[Buildroot] [PATCH 1/2] skeleton: make /run a directory
dywi at mailerd.de
Mon Dec 1 21:19:31 UTC 2014
2014-12-01 22:12 GMT+01:00 Gustavo Zacarias <gustavo at zacarias.com.ar>:
> On 12/01/2014 06:01 PM, Samuel Martin wrote:
>>> Shouldn't we link /var/lock to (../)run/lock then?
>> I think we shuould.
> It's not a prerequisite for this patch to get applied.
> And that would fail badly for the systemd scenario, you want to use
> tmpfiles.d for that since /run will be empty and no inittab/script will
> fill that up.
There are already tmpfiles.d rules for that, /usr/lib/tmpfiles.d/legacy.conf:
d /run/lock 0755 root root -
L /var/lock - - - - ../run/lock
To make it work properly for systemd, /var/lock needs to be removed
from the skeleton or point to /run/lock (or replace the "L" with "L+"
in the tmpfiles.d rule).
More information about the buildroot