Skip to content

Commit c890621

Browse files
committed
fix: allows cgroups v2 by default for flatcar
1 parent 5c9997f commit c890621

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ansible/roles/containerd/tasks/install-flatcar.yaml

-13
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,3 @@
2828
copy:
2929
content: "export PATH=$PATH:/run/torcx/unpack/docker/bin/"
3030
dest: "/etc/profile.d/my_path.sh"
31-
32-
- name: ensure cgroups v2 are disabled
33-
command: grep -q systemd.unified_cgroup_hierarchy=0 /usr/share/oem/grub.cfg
34-
changed_when: no
35-
failed_when: false
36-
register: cgroupsv2_check
37-
38-
- name: cgroups setup
39-
when:
40-
- cgroupsv2_check.rc != 0
41-
block:
42-
- name: disable cgroups v2
43-
command: sed -E -i 's/^(set linux_append=.*)"$/\1 systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller"/g' /usr/share/oem/grub.cfg

0 commit comments

Comments
 (0)