From de3a2e2bcfcd6d997aff81690523fd9fbf67dc42 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 26 Nov 2022 08:34:04 +0100 Subject: [PATCH] :penguin: Set default hybrid cgroups for alpine (#500) Signed-off-by: Ettore Di Giacinto Signed-off-by: Ettore Di Giacinto --- overlay/files/system/oem/28_cgroups.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 overlay/files/system/oem/28_cgroups.yaml diff --git a/overlay/files/system/oem/28_cgroups.yaml b/overlay/files/system/oem/28_cgroups.yaml new file mode 100644 index 000000000..8d5787d87 --- /dev/null +++ b/overlay/files/system/oem/28_cgroups.yaml @@ -0,0 +1,7 @@ +stages: + initramfs.before: + - name: "Setup hybrid cgroups" + if: '[ -e /sbin/rc-service ]' + commands: + - echo 'rc_cgroup_mode="hybrid"' >> /etc/rc.conf + - echo 'rc_cgroup_controllers="cpuset cpu io memory hugetlb pids"' >> /etc/rc.conf \ No newline at end of file