]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rpcbind: Specify state directory under /run
authorJoshua Watt <JPEWhacker@gmail.com>
Fri, 15 Dec 2023 20:34:04 +0000 (13:34 -0700)
committerSteve Sakoman <steve@sakoman.com>
Tue, 23 Jan 2024 14:27:34 +0000 (04:27 -1000)
The state directory must be correctly specified as under /run because
RequiresMountsFor doesn't follow symbolic links which means the unit may
run before /run is mounted if the default of /var/run/rpcbind is kept

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 561e853e97e2cfa325ed310233577a5e124d9049)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/rpcbind/rpcbind_1.2.6.bb

index dd89726afc7239831d5fab0a19f54dad653f36b9..dbd4d32e0a0a399f97cae55c590642e1ebe118b6 100644 (file)
@@ -40,7 +40,7 @@ PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}/
                           systemd \
 "
 
-EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
+EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc --with-statedir=${runtimedir}/rpcbind"
 
 do_install:append () {
        install -d ${D}${sysconfdir}/init.d