Skip to contentSkip to conversation

tools/pygrub: remove /var/run/xend/boot from install target

PATCH In review Olaf Hering 3 participants 3 messages Apr 17, 2014 – Apr 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/pygrub: remove /var/run/xend/boot from install target

pygrub stores the temporary kernel+initrd files in /var/run/pygrub, or any other directory specified with --output-directory=<dir>. If the default dir is missing pygrub will create it.

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/pygrub/Makefile | 1 -
 1 file changed, 1 deletion(-)
tools/pygrub/Makefile +0 -1
index 0191638..4890927 100644
@@ -13,7 +13,6 @@ install: all
 	CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \
 		$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
 		--install-scripts=$(PRIVATE_BINDIR) --force
-	$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
 	set -e; if [ $(BINDIR) != $(PRIVATE_BINDIR) -a \
 	             "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
 	             "`readlink -f $(PRIVATE_BINDIR)`" ]; then \
Acked-by on v1 1/1
#1 lore raw

Olaf Hering writes ("[PATCH] tools/pygrub: remove /var/run/xend/boot from install target"):

Quoted 3 lines

pygrub stores the temporary kernel+initrd files in /var/run/pygrub, or any other directory specified with --output-directory=<dir>. If the default dir is missing pygrub will create it.

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^Wthree patches. That would save me c&ping text like this into each reply.)

Thanks,
Ian.

#2 lore raw
Quoted 9 lines · Ian Jackson

Olaf Hering writes ("[PATCH] tools/pygrub: remove /var/run/xend/boot from install target"):

Quoted 3 lines

pygrub stores the temporary kernel+initrd files in /var/run/pygrub, or any other directory specified with --output-directory=<dir>. If the default dir is missing pygrub will create it.

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

Quoted 5 lines

(It would be convenient if related patches like this were grouped into a series, even if it's only two^Wthree patches. That would save me c&ping text like this into each reply.)

Not to mention that at least one patch in "tools changes to honor --prefix=" relies contextually on this one being applied.

Ian.