diff --git a/files/common/etc/default/grub.d/override.cfg b/files/common/etc/default/grub.d/override.cfg index c4cacc605..129aa4f81 100644 --- a/files/common/etc/default/grub.d/override.cfg +++ b/files/common/etc/default/grub.d/override.cfg @@ -118,3 +118,15 @@ GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT init_on_alloc=0" # Disable the USB subsystem in its entirety for security reasons. # GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT usbcore.nousb=1" + +# +# Enable cgroups v2 +# +# At the time of this writing we are using Ubuntu 18.04 which has +# support for cgroups v2 but it is not enabled by default. We can +# consider removing this when we move to future releases. +# +# The appstack doesn't have any hard requirements in the cgroup +# version but OOMD needs the system to use v2 so it can operate. +# +GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT systemd.unified_cgroup_hierarchy=1"