btrfs-progs: btrfsck is a symlink to btrfs
authorDaniel Golle <daniel@makrotopia.org>
Thu, 2 Apr 2015 02:28:17 +0000 (04:28 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 2 Apr 2015 02:28:17 +0000 (04:28 +0200)
safe half a meg by not copying the btrfs binary twice.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
utils/btrfs-progs/Makefile

index 8cf626631262750fb997ac12c38df01f78f80aa8..63b8f6cdc0ee03e02e75e874126dd08e33e014d2 100644 (file)
@@ -44,9 +44,8 @@ define Package/btrfs-progs/description
  GPL and open for contribution from anyone.
 endef
 
-progs = btrfs btrfsck btrfs-debug-tree btrfs-find-root btrfs-image  \
-       btrfs-map-logical btrfs-show-super btrfstune btrfs-zero-log \
-       fsck.btrfs mkfs.btrfs
+progs = btrfs btrfs-debug-tree btrfs-find-root btrfs-image btrfs-map-logical \
+       btrfs-show-super btrfstune btrfs-zero-log fsck.btrfs mkfs.btrfs
 
 CONFIGURE_ARGS += \
        --disable-backtrace \
@@ -58,6 +57,7 @@ define Package/btrfs-progs/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
+       ln -s btrfs $(1)/usr/bin/btrfsck
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
 endef