[Buildroot] [PATCH 1/2] skeleton: make /run a directory

André Erdmann dywi at mailerd.de
Mon Dec 1 21:59:20 UTC 2014


2014-12-01 22:32 GMT+01:00 Gustavo Zacarias <gustavo at zacarias.com.ar>:
> On 12/01/2014 06:19 PM, André Erdmann wrote:
>
>> 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).
>
> Sure, but as i explained to Samuel on IRC this is just the tip of a
> general cleanup regarding the base files.
> Even though systemd ships that doing more symlinks won't help the
> sysv-aspect of the cleanup since /run/lock won't exist whereas now lock
> is still /tmp hence no breakage until the other patches are sent/applied.
> The idea is to make a script to handle something similar to tmpfiles.d
> for sysv-style so we can drop all the symlink hackery which is pointless
> for systemd but necessary for sysv, we just stick is as S01basefiles or
> some other preferred name.

The symlinks might still be required for readonly rootfs (but this
requires other changes anyway). Apart from that, I agree with the
basefiles approach and keeping /var/lock untouched in this patch
series.

> And also to really move out all of the remaining files that make no
> sense for systemd and/or sysv into a basefiles (or other nifty name)
> package to avoid noise.
> Regards.

-- 
André



More information about the buildroot mailing list