From ea5259e701aad433956994102e06f1d1cb63397a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 2 Apr 2015 04:28:17 +0200 Subject: [PATCH] btrfs-progs: btrfsck is a symlink to btrfs safe half a meg by not copying the btrfs binary twice. Signed-off-by: Daniel Golle --- utils/btrfs-progs/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/btrfs-progs/Makefile b/utils/btrfs-progs/Makefile index 8cf626631..63b8f6cdc 100644 --- a/utils/btrfs-progs/Makefile +++ b/utils/btrfs-progs/Makefile @@ -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