Skip to content

Commit

Permalink
🐧 Set default hybrid cgroups for alpine (#500)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>

Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Nov 26, 2022
1 parent 2f61a90 commit de3a2e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions overlay/files/system/oem/28_cgroups.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit de3a2e2

Please sign in to comment.