From 5c1cea8f8e34134d12c8b17dde89b8ec5463eb58 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 2 Nov 2021 19:51:40 +0100 Subject: atop: Do not install the /var/log/atop directory /var/log is normally a link to /var/volatile/log and /var/volatile is a tmpfs mount. So anything created in /var/log will not be available when the tmpfs is mounted. /var/log/atop will be created in runtime. Signed-off-by: Peter Kjellerstedt Signed-off-by: Khem Raj --- meta-oe/recipes-support/atop/atop_2.4.0.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-oe/recipes-support/atop/atop_2.4.0.bb b/meta-oe/recipes-support/atop/atop_2.4.0.bb index c91d866106..819303c57e 100644 --- a/meta-oe/recipes-support/atop/atop_2.4.0.bb +++ b/meta-oe/recipes-support/atop/atop_2.4.0.bb @@ -42,6 +42,10 @@ do_install() { rm -f ${D}${sysconfdir}/init.d/atopacct fi + # /var/log/atop will be created in runtime + rm -rf ${D}${localstatedir}/log + rmdir --ignore-fail-on-non-empty ${D}${localstatedir} + # remove atopacct related files rm -rf ${D}${sbindir} ${D}${mandir}/man8 } -- cgit v1.2.3-54-g00ecf