aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2021-11-02 19:51:38 +0100
committerKhem Raj <raj.khem@gmail.com>2021-11-02 13:29:11 -0700
commit59496f4207946b0fdf9b1949b6542f17416bfbf3 (patch)
tree9a346057492085d7bb8acf464f8b321008304f2f
parente2a348255d0e03e0a36329426dc7639d768aef5f (diff)
downloadmeta-openembedded-contrib-59496f4207946b0fdf9b1949b6542f17416bfbf3.tar.gz
corosync: Do not install the /var/log/cluster 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/cluster will be created in runtime. This also drops the removal of the /var/run directory as it is no longer created in the first place. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-extended/corosync/corosync_3.0.3.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb
index 016441be5c..ec2a785277 100644
--- a/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb
+++ b/meta-networking/recipes-extended/corosync/corosync_3.0.3.bb
@@ -45,7 +45,8 @@ do_install:append() {
install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync
install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd
- rm -rf "${D}${localstatedir}/run"
+ rmdir ${D}${localstatedir}/log/cluster ${D}${localstatedir}/log
+ rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
install -d ${D}${sysconfdir}/default/volatiles
echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync