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 <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Kjellerstedt 2021-11-02 19:51:40 +01:00 committed by Khem Raj
parent 5330b95a64
commit 5c1cea8f8e

View File

@ -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
}