Skip to contentSkip to conversation

drbd-utils: remove /var/lock to avoid conflict

PATCH New [email protected] 1 participant 1 message May 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drbd-utils: remove /var/lock to avoid conflict

From: Jackie Huang <[email protected]>

Remove the empty /var/lock to avoid conflict with base-files:
| Error: Transaction check error:
file /var/lock conflicts between attempted installs of drbd-utils-8.9.6-r0.core2_64 and base-files-3.0.14-r89.qemux86_64

---
 meta-networking/recipes-support/drbd/drbd-utils_8.9.6.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-networking/recipes-support/drbd/drbd-utils_8.9.6.bb +5 -0
index 67ed8e5c0..5f6c43f7e 100644
@@ -30,6 +30,11 @@ EXTRA_OECONF = " \
                 --without-manual\
                "
 
+do_install_append() {
+    # don't install empty /var/lock to avoid conflict with base-files
+    rm -rf ${D}${localstatedir}/lock
+}
+
 RDEPENDS_${PN} += "bash perl-module-getopt-long perl-module-exporter perl-module-constant perl-module-overloading perl-module-exporter-heavy"
 
 # The drbd items are explicitly put under /lib when installed.
Signature · 1 line
2.11.0