[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] tools/pygrub: do not override pygrub with a symbolic link


  • To: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Christoph Egger <chegger@xxxxxxxxx>
  • Date: Mon, 22 Apr 2013 13:50:03 +0200
  • Delivery-date: Mon, 22 Apr 2013 11:50:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

tools/pygrub: Do not override pygrub with a symbolic link if $(BINDIR) and 
$(PRIVATE_BINDIR) are the same.

Signed-off-by: Christoph Egger <chegger@xxxxxxxxx>
diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
index 039f7f7..c3b34d7 100644
--- a/tools/pygrub/Makefile
+++ b/tools/pygrub/Makefile
@@ -15,8 +15,8 @@ install: all
                --install-scripts=$(PRIVATE_BINDIR) --force
        $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
        set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
-                    "`readlink -f $(PRIVATE_BINDIR)`" ]; then \
-           ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \
+                    "`readlink -f $(DESTDIR)/$(PRIVATE_BINDIR)`" ]; then \
+           ln -sf $(DESTDIR)/$(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \
        fi
 
 .PHONY: clean

Attachment: patch_pygrub.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.