tools: remove /var/lock/subsys from install target
authorOlaf Hering <olaf@aepfle.de>
Thu, 17 Apr 2014 10:04:39 +0000 (12:04 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 11:20:19 +0000 (12:20 +0100)
/var/lock/subsys is used only in tools/hotplug/Linux/init.d/xendomains.
The start() function already does a "mkdir /var/lock/subsys", so its not
required to create this directory during make install|rpmball.

Without this change installing the resulting xen.rpm will fail on
systems where /var/lock is a symlink. rpm complains that '/var/lock'
(the symlink) is already owned by some other system rpm package.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/Makefile

index 2d32f273877ceb91b41b296f4ede82110930f41e..3675515eb87ac3e29c65a41768c9d8aa34501383 100644 (file)
@@ -63,7 +63,6 @@ install: subdirs-install
        $(INSTALL_DIR) $(DESTDIR)/var/xen/dump
        $(INSTALL_DIR) $(DESTDIR)/var/log/xen
        $(INSTALL_DIR) $(DESTDIR)/var/lib/xen
-       $(INSTALL_DIR) $(DESTDIR)/var/lock/subsys
 
 .PHONY: uninstall
 uninstall: D=$(DESTDIR)