[PATCH] fstools: disable swapon/swapoff symlink creation

Rui Salvaterra rsalvaterra at gmail.com
Wed Jul 15 09:56:39 EDT 2020

The swapon/swapoff applets enabled by default in BusyBox have more features than
the ones from block-mount's block app, which makes them redundant.

This patch removes disables the creation of the symlinks for the swapon/swapoff
block applets. A follow-up patch will remove the applets themselves from the
block executable.

Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
 package/system/fstools/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index 6b813cb433..ed0b3a7a80 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -114,8 +114,6 @@ define Package/block-mount/install
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/block $(1)/sbin/
 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libblkid-tiny.so $(1)/lib/
-	$(LN) ../../sbin/block $(1)/usr/sbin/swapon
-	$(LN) ../../sbin/block $(1)/usr/sbin/swapoff

More information about the openwrt-devel mailing list