busybox: enable swapon/off by default to make it consistent with mkswap
authorEmil Muratov <gpm@hotplug.ru>
Thu, 1 Nov 2018 18:53:43 +0000 (21:53 +0300)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:56:31 +0000 (15:56 -0400)
  No size increase on busybox binary.
  Since busybox mkswap is already enabled by default it seems reasonable
  to enable swapon/off too. For ex. this obsoletes installing block-mount
  dependency for zram-swap.

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
(cherry picked from commit afa5ce2493505dc0a0de4cefa9ccbf3a6389bdbc)

package/utils/busybox/Config-defaults.in

index a77afdde414d82553b9b0c81386a3536f676713b..8c87866b2f5d872445ce59f5e3dcd66842f35a1d 100644 (file)
@@ -1749,16 +1749,16 @@ config BUSYBOX_DEFAULT_SETSID
        default n
 config BUSYBOX_DEFAULT_SWAPON
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPON_DISCARD
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPON_PRI
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_SWAPOFF
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPONOFF_LABEL
        bool
        default n