diff options
author | Malte Schmidt <malte.schmidt@weidmueller.com> | 2023-11-16 13:50:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-20 15:30:52 +0000 |
commit | 12da590768b9e51a66f425c07fbef266a0115395 (patch) | |
tree | 13fd5a0f9e3382d0770c19240e49691e729bb956 | |
parent | 34f496c2d47f1ab34a8330a0830726f24e7ba6cc (diff) | |
download | poky-12da590768b9e51a66f425c07fbef266a0115395.tar.gz |
systemd: use nonarch libdir for tmpfiles.d
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
(From OE-Core rev: ee162bc2f5fccb5aab6adb48d0f449991b1a6a51)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/systemd/systemd_254.4.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd_254.4.bb b/meta/recipes-core/systemd/systemd_254.4.bb index cc0e29fdd2..ecf693ef92 100644 --- a/meta/recipes-core/systemd/systemd_254.4.bb +++ b/meta/recipes-core/systemd/systemd_254.4.bb | |||
@@ -282,12 +282,12 @@ do_install() { | |||
282 | [ ! -e ${D}/${base_sbindir}/udevd ] && ln -s ${rootlibexecdir}/systemd/systemd-udevd ${D}/${base_sbindir}/udevd | 282 | [ ! -e ${D}/${base_sbindir}/udevd ] && ln -s ${rootlibexecdir}/systemd/systemd-udevd ${D}/${base_sbindir}/udevd |
283 | 283 | ||
284 | install -d ${D}${sysconfdir}/udev/rules.d/ | 284 | install -d ${D}${sysconfdir}/udev/rules.d/ |
285 | install -d ${D}${sysconfdir}/tmpfiles.d | 285 | install -d ${D}${nonarch_libdir}/tmpfiles.d |
286 | for rule in $(find ${WORKDIR} -maxdepth 1 -type f -name "*.rules"); do | 286 | for rule in $(find ${WORKDIR} -maxdepth 1 -type f -name "*.rules"); do |
287 | install -m 0644 $rule ${D}${sysconfdir}/udev/rules.d/ | 287 | install -m 0644 $rule ${D}${sysconfdir}/udev/rules.d/ |
288 | done | 288 | done |
289 | 289 | ||
290 | install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/ | 290 | install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${nonarch_libdir}/tmpfiles.d/ |
291 | 291 | ||
292 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | 292 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then |
293 | install -d ${D}${sysconfdir}/init.d | 293 | install -d ${D}${sysconfdir}/init.d |