[Buildroot] [PATCH] system/skeleton: make /var/run a symlink to /run

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Jul 15 13:43:38 UTC 2020


On Tue, 14 Jul 2020 16:22:25 +0200
Norbert Lange <nolange79 at gmail.com> wrote:

> chronological:
> 
> -   Buildroot uses /var/run as RUNTIME directory for SysV, and /run for systemd.
> -   I add the lttng patch above to use either /var/run/lttng or /run/lttng
> -   I consider doing the same for dbus as I get warnings otherwise
> (actually have a post_install script replacing /var/run with /run)
> -   I consider it would be alot easier to just use /run everywhere and
> add this patch to see if that's accepted, before doing more
> if-butt-ing like with lttng

But then, you have to anyway tweak lttng to pass:

LTTNG_LIBUST_CONF_OPTS += --with-lttng-system-rundir=/run/lttng

but unconditionally, and no longer depending on whether systemd is used
or not. Correct ?

But... /run is already a tmpfs in sysv-based systems, so what prevents
today from using /run/lttng even for sysv based systems ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list