Skip to contentSkip to conversation

tools: remove /var/lock/subsys from install target

PATCH In review Olaf Hering 2 participants 2 messages Apr 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: remove /var/lock/subsys from install target

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

---
 tools/Makefile | 1 -
 1 file changed, 1 deletion(-)
tools/Makefile +0 -1
index c3cfb38..ba743a1 100644
@@ -62,7 +62,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)
Acked-by on v1 1/1
#1 lore raw

Olaf Hering writes ("[PATCH] tools: remove /var/lock/subsys from install target"):

Quoted 7 lines

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

For the reasons I have explained in my reply to
[PATCH] tools: remove /var/run/xenstored from install target
I concur.

(It would be convenient if related patches like this were grouped into a series, even if it's only two patches.)

Thanks,
Ian.