mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
34f496c2d4
commit
12da590768
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user