mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
systemd: Do not install anything in /var/volatile
/var/log is typically a symbolic link to inside /var/volatile, which
is expected to be empty. Check ${VOLATILE_LOG_DIR} to see if it is ok
to install /var/log.
(From OE-Core rev: 73356f6d9d3881cf8ebde91a84758b25c63432cf)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
671aa4424a
commit
8aa69972a6
@@ -270,13 +270,16 @@ do_install() {
|
|||||||
install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${systemd_system_unitdir}d-sysv-install
|
install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${systemd_system_unitdir}d-sysv-install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown root:systemd-journal ${D}/${localstatedir}/log/journal
|
if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then
|
||||||
|
# /var/log is typically a symbolic link to inside /var/volatile,
|
||||||
|
# which is expected to be empty.
|
||||||
|
rm -rf ${D}${localstatedir}/log
|
||||||
|
else
|
||||||
|
chown root:systemd-journal ${D}${localstatedir}/log/journal
|
||||||
|
|
||||||
# Delete journal README, as log can be symlinked inside volatile.
|
# journal-remote creates this at start
|
||||||
rm -f ${D}/${localstatedir}/log/README
|
rm -rf ${D}${localstatedir}/log/journal/remote
|
||||||
|
fi
|
||||||
# journal-remote creates this at start
|
|
||||||
rm -rf ${D}/${localstatedir}/log/journal/remote
|
|
||||||
|
|
||||||
install -d ${D}${systemd_system_unitdir}/graphical.target.wants
|
install -d ${D}${systemd_system_unitdir}/graphical.target.wants
|
||||||
install -d ${D}${systemd_system_unitdir}/multi-user.target.wants
|
install -d ${D}${systemd_system_unitdir}/multi-user.target.wants
|
||||||
|
|||||||
Reference in New Issue
Block a user