procd: remove support for mounting /tmp in zram
The /tmp directory is mounted as tmpfs. The tmpfs filesystem is backed by anonymous memory, which means it can be swapped out at any time, if there is memory pressure [1]. For this reason, a zram swap device is a much better choice than mounting /tmp on zram, since it's able to compress all anonymous memory, and not just the memory assigned to /tmp. We already have the zram-swap package for this specific purpose, which means procd's tmp-on-zram is both redundant and more limited. A follow-up patch will remove support for mounting /tmp in zram from procd itself. [1] https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
This commit is contained in:
parent
8235723c78
commit
247eaa4416
@ -24,8 +24,7 @@ PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
|||||||
|
|
||||||
PKG_ASLR_PIE_REGULAR:=1
|
PKG_ASLR_PIE_REGULAR:=1
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_TARGET_INIT_PATH CONFIG_KERNEL_SECCOMP \
|
CONFIG_TARGET_INIT_PATH CONFIG_KERNEL_SECCOMP CONFIG_PROCD_SHOW_BOOT \
|
||||||
CONFIG_PROCD_SHOW_BOOT CONFIG_PROCD_ZRAM_TMPFS \
|
|
||||||
CONFIG_KERNEL_NAMESPACES CONFIG_PACKAGE_procd-ujail CONFIG_PACKAGE_procd-seccomp
|
CONFIG_KERNEL_NAMESPACES CONFIG_PACKAGE_procd-ujail CONFIG_PACKAGE_procd-seccomp
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
@ -96,10 +95,6 @@ config PROCD_SHOW_BOOT
|
|||||||
default n
|
default n
|
||||||
prompt "Print the shutdown to the console as well as logging it to syslog"
|
prompt "Print the shutdown to the console as well as logging it to syslog"
|
||||||
|
|
||||||
config PROCD_ZRAM_TMPFS
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
prompt "Mount /tmp using zram."
|
|
||||||
endmenu
|
endmenu
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -111,10 +106,6 @@ ifeq ($(CONFIG_PROCD_SHOW_BOOT),y)
|
|||||||
CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE=1
|
CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PROCD_ZRAM_TMPFS),y)
|
|
||||||
CMAKE_OPTIONS += -DZRAM_TMPFS=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef CONFIG_PACKAGE_procd-ujail
|
ifdef CONFIG_PACKAGE_procd-ujail
|
||||||
CMAKE_OPTIONS += -DJAIL_SUPPORT=1
|
CMAKE_OPTIONS += -DJAIL_SUPPORT=1
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user