diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2021-11-02 19:51:38 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-11-03 06:57:48 -0700 |
commit | a61358b511ec96501937d5be6a89acd71d6e002f (patch) | |
tree | 487a640ce629758c0df5ecc7f259cb47d1403294 /meta-networking/recipes-extended | |
parent | b1ce7f5036be9b31c58677f1602f62dea0e78709 (diff) | |
download | meta-openembedded-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.bb | 3 |
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 016441be5..ec2a78527 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() { | |||
45 | install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync | 45 | install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync |
46 | install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd | 46 | install -m 0644 ${S}/tools/corosync-notifyd.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync-notifyd |
47 | 47 | ||
48 | rm -rf "${D}${localstatedir}/run" | 48 | rmdir ${D}${localstatedir}/log/cluster ${D}${localstatedir}/log |
49 | rmdir --ignore-fail-on-non-empty ${D}${localstatedir} | ||
49 | 50 | ||
50 | install -d ${D}${sysconfdir}/default/volatiles | 51 | install -d ${D}${sysconfdir}/default/volatiles |
51 | echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync | 52 | echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync |