mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09: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:e7b3f1a6c3aa329b8922Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
committed by
Romain Naour
parent
093aac9a2f
commit
be5f14657a
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user