]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: use nonarch libdir for tmpfiles.d
authorMalte Schmidt <malte.schmidt@weidmueller.com>
Thu, 16 Nov 2023 12:50:59 +0000 (13:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Nov 2023 15:30:46 +0000 (15:30 +0000)
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].

[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-core/systemd/systemd_254.4.bb

index cc0e29fdd24b91824ae1fb9b4fefd4204e7b67c0..ecf693ef92772499abff91abe0c7893126e49fe6 100644 (file)
@@ -282,12 +282,12 @@ do_install() {
        [ ! -e ${D}/${base_sbindir}/udevd ] && ln -s ${rootlibexecdir}/systemd/systemd-udevd ${D}/${base_sbindir}/udevd
 
        install -d ${D}${sysconfdir}/udev/rules.d/
-       install -d ${D}${sysconfdir}/tmpfiles.d
+       install -d ${D}${nonarch_libdir}/tmpfiles.d
        for rule in $(find ${WORKDIR} -maxdepth 1 -type f -name "*.rules"); do
                install -m 0644 $rule ${D}${sysconfdir}/udev/rules.d/
        done
 
-       install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/
+       install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${nonarch_libdir}/tmpfiles.d/
 
        if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
                install -d ${D}${sysconfdir}/init.d