mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
package/systemd: enable required oomd kernel options
In order for systemd-oomd to run CONFIG_PSI and CONFIG_MEMCG must be enabled in the kernel config. See:e7b3f1a6c3
aa329b8922
Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Romain Naour <romain.naour@smile.fr> (cherry picked from commitbe5f14657a
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e0cb58f1ca
commit
5703b1a03e
@ -480,6 +480,10 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_OOMD),y)
|
||||
SYSTEMD_CONF_OPTS += -Doomd=true
|
||||
SYSTEMD_OOMD_USER = systemd-oom -1 systemd-oom -1 * - - - systemd Userspace OOM Killer
|
||||
define SYSTEMD_OOMD_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PSI)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MEMCG)
|
||||
endef
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += -Doomd=false
|
||||
endif
|
||||
@ -804,6 +808,8 @@ define SYSTEMD_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS4_FS)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_ACL)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_XATTR)
|
||||
|
||||
$(SYSTEMD_OOMD_LINUX_CONFIG_FIXUPS)
|
||||
endef
|
||||
|
||||
# We need a very minimal host variant, so we disable as much as possible.
|
||||
|
Loading…
Reference in New Issue
Block a user