mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
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:
committed by
Khem Raj
parent
5330b95a64
commit
5c1cea8f8e
@@ -42,6 +42,10 @@ do_install() {
|
|||||||
rm -f ${D}${sysconfdir}/init.d/atopacct
|
rm -f ${D}${sysconfdir}/init.d/atopacct
|
||||||
fi
|
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
|
# remove atopacct related files
|
||||||
rm -rf ${D}${sbindir} ${D}${mandir}/man8
|
rm -rf ${D}${sbindir} ${D}${mandir}/man8
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user