mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
sysstat: fix creating configuration file for /var/log/sa
Fix to create configuration file related to /var/log/sa for sysvinit and systemd systems respectively. (From OE-Core rev: 652e515cbdf0f6314b63ec52b9fcac42299c3d60) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -32,10 +32,16 @@ do_install() {
|
||||
autotools_do_install
|
||||
|
||||
# don't install /var/log/sa when populating rootfs. Do it through volatile
|
||||
|
||||
rm -rf ${D}/var
|
||||
install -d ${D}/etc/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||
install -d ${D}/etc/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/99_sysstat ${D}/etc/default/volatiles
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d ${localstatedir}/log/sa - - - -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/sysstat.conf
|
||||
fi
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/sysstat.service ${D}${systemd_unitdir}/system
|
||||
|
||||
Reference in New Issue
Block a user