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

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

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Jackie Huang 2017-05-17 11:20:53 +08:00 committed by Armin Kuster
parent 13edb026a5
commit f46428b4b4

View File

@ -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.