aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-extended
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-03 06:57:48 -0700
commita61358b511ec96501937d5be6a89acd71d6e002f (patch)
tree487a640ce629758c0df5ecc7f259cb47d1403294 /meta-networking/recipes-extended
parentb1ce7f5036be9b31c58677f1602f62dea0e78709 (diff)
downloadmeta-openembedded-contrib-a61358b511ec96501937d5be6a89acd71d6e002f.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>
Diffstat (limited to 'meta-networking/recipes-extended')
-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