]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
volatile-binds: Calculate the name of the /var/lib service
authorStéphane Veyret <sveyret@gmail.com>
Mon, 28 Aug 2023 17:52:56 +0000 (19:52 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Oct 2023 08:50:09 +0000 (08:50 +0000)
commit66f0c2a1678cb69cf8d50372b0592c55e2dc3e3c
tree35e188305db8fd8dd07ccd761a7fb6f3f1129c80
parent1ca031b77546056ca1994469b0f2e93ea2018edf
volatile-binds: Calculate the name of the /var/lib service

By default, /var/lib is bind mounted on /var/volatile/lib. If this is
the case, the recipe adds conditions on systemd-random-seed in the
service file mounting it. But as the VOLATILE_BINDS may be modified,
/var/lib may be mounted elsewhere, for example in /persistent/var/lib.
In this case, the conditions are not set because the service file name
does not match expected one.
This patch automatically records the name of the service mounting
/var/lib, if any, in order to set the condition in the appropriate file.

Signed-off-by: Stéphane Veyret <sveyret@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/volatile-binds/volatile-binds.bb