Browse Source

btrfs-progs: btrfsck is a symlink to btrfs

safe half a meg by not copying the btrfs binary twice.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle 9 years ago
parent
commit
ea5259e701
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      utils/btrfs-progs/Makefile

+ 3
- 3
utils/btrfs-progs/Makefile View File

44
  GPL and open for contribution from anyone.
44
  GPL and open for contribution from anyone.
45
 endef
45
 endef
46
 
46
 
47
-progs = btrfs btrfsck btrfs-debug-tree btrfs-find-root btrfs-image  \
48
-	btrfs-map-logical btrfs-show-super btrfstune btrfs-zero-log \
49
-	fsck.btrfs mkfs.btrfs
47
+progs = btrfs btrfs-debug-tree btrfs-find-root btrfs-image btrfs-map-logical \
48
+	btrfs-show-super btrfstune btrfs-zero-log fsck.btrfs mkfs.btrfs
50
 
49
 
51
 CONFIGURE_ARGS += \
50
 CONFIGURE_ARGS += \
52
 	--disable-backtrace \
51
 	--disable-backtrace \
58
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
57
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
59
 	$(INSTALL_DIR) $(1)/usr/bin
58
 	$(INSTALL_DIR) $(1)/usr/bin
60
 	$(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
59
 	$(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
60
+	ln -s btrfs $(1)/usr/bin/btrfsck
61
 	$(INSTALL_DIR) $(1)/etc/init.d
61
 	$(INSTALL_DIR) $(1)/etc/init.d
62
 	$(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
62
 	$(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
63
 endef
63
 endef