Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH] Btrfs-progs: make btrfsck a hardlink at install time
@ 2013-05-02 16:20 Eric Sandeen
  0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2013-05-02 16:20 UTC (permalink / raw)
  To: linux-btrfs

btrfsck gets hardlinked to btrfs during the build, but the
install phase simply copies them both to the destination without
preserving the link.

Just force-link btrfsck in the destination again during install
so that the installed btrfsck is a link as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/Makefile b/Makefile
index 86d2c93..7237e05 100644
--- a/Makefile
+++ b/Makefile
@@ -193,6 +193,8 @@ clean :
 install: $(libs) $(progs) install-man
 	$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
 	$(INSTALL) $(progs) $(DESTDIR)$(bindir)
+	# btrfsck is a link to btrfs in the src tree, make it so for installed file as well
+	$(LN) -f $(DESTDIR)$(bindir)/btrfs $(DESTDIR)$(bindir)/btrfsck
 	$(INSTALL) -m755 -d $(DESTDIR)$(libdir)
 	$(INSTALL) $(libs) $(DESTDIR)$(libdir)
 	cp -a $(lib_links) $(DESTDIR)$(libdir)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-02 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 16:20 [PATCH] Btrfs-progs: make btrfsck a hardlink at install time Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox