tools: remove /var/run/xenstored from install target
PATCH 1/1 tools: remove /var/run/xenstored from install target
xenstored already does "mkdir /var/run/xenstored" on startup, 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/run is a symlink. rpm complains that '/var/run' (the symlink) is already owned by some other system rpm package.
--- tools/xenstore/Makefile | 1 - 1 file changed, 1 deletion(-)
tools/xenstore/Makefile +0 -1
@@ -113,7 +113,6 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)/xenstore-compat - $(INSTALL_DIR) $(DESTDIR)/var/run/xenstored $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR) $(INSTALL_PROG) xenstore-control $(DESTDIR)$(BINDIR)
Olaf Hering writes ("[PATCH] tools: remove /var/run/xenstored from install target"):
Quoted 6 lines
xenstored already does "mkdir
/var/run/xenstored" on startup, 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/runis a symlink. rpm complains that '/var/run' (the symlink) is already owned by some other system rpm package.
I think this is right. Note also that /var/run might be a tmpfs so trying to "install" it as a directory isn't right because it might vanish on reboot (which is why the startup script creates it too).
I think it was simply a mistake not to remove the INSTALL_DIR at the same time as adding the startup script mkdir.
Thanks,
Ian.
Quoted 8 lines · Ian Jackson
Olaf Hering writes ("[PATCH] tools: remove
/var/run/xenstoredfrom install target"):Quoted 6 lines
xenstored already does "mkdir
/var/run/xenstored" on startup, 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/runis a symlink. rpm complains that '/var/run' (the symlink) is already owned by some other system rpm package.
Quoted 6 lines
I think this is right. Note also that
/var/runmight be a tmpfs so trying to "install" it as a directory isn't right because it might vanish on reboot (which is why the startup script creates it too).I think it was simply a mistake not to remove the
INSTALL_DIRat the same time as adding the startup script mkdir.
I've taken this as an Ack (since you acked several other patches with reference to these comments, so I've assumed the omission here was unintentional) and also Acked myself + applied.
I have also acked + applied
tools: remove /var/lock/subsys from install target tools/pygrub: remove /var/run/xend/boot from install target
which you did ack as well.
Ian.