aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2012-05-15 16:28:11 +0100
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2012-05-15 16:28:11 +0100
commit10c88f1c18b7526d4e2f18d6245ebd8fd22aae3d (patch)
tree7cd7f24a0749de9b2fc9b7f26acbcfa69b0a04d9 /tools/pygrub
parent965932f9fe938c408bcc3330a7db29fbab3964a8 (diff)
downloadxen-10c88f1c18b7526d4e2f18d6245ebd8fd22aae3d.tar.gz
xen-10c88f1c18b7526d4e2f18d6245ebd8fd22aae3d.tar.bz2
xen-10c88f1c18b7526d4e2f18d6245ebd8fd22aae3d.zip
tools: Install pv bootloaders in libexec rather than /usr/bin
pygrub and xenpvnetboot are meant to be run by tools, and not by the user, and thus should be in /usr/lib/xen/bin rather than /usr/bin. Because most config files will still have an absolute path pointing to /usr/bin/pygrub, make a symbolic link that we will deprecate. Signed-off-by: George Dunlap <george.dunlap@eu.ctirix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
index 1d6e659e63..f8c526279e 100644
--- a/tools/pygrub/Makefile
+++ b/tools/pygrub/Makefile
@@ -11,9 +11,11 @@ build:
.PHONY: install
install: all
CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \
- $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
- $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(BINDIR)/pygrub
+ $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
+ --install-scripts=$(DESTDIR)/$(PRIVATE_BINDIR) --force
+ $(INSTALL_PYTHON_PROG) src/pygrub $(DESTDIR)/$(PRIVATE_BINDIR)/pygrub
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
+ ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR)
.PHONY: clean
clean: