Skip to content

Instantly share code, notes, and snippets.

@jdoss
Created September 2, 2020 17:45
Show Gist options
  • Save jdoss/f543b9e71d83fdcadb01b141087f0a25 to your computer and use it in GitHub Desktop.
Save jdoss/f543b9e71d83fdcadb01b141087f0a25 to your computer and use it in GitHub Desktop.
Enable cgroups v2 (non hybird) on FCOS
systemd:
units:
- name: enable-cgroups-v2.service
enabled: true
contents: |
[Unit]
Description=Enable cgroups v2 (systemd.unified_cgroup_hierarchy)
ConditionFirstBoot=true
After=ignition-complete.target
Before=default.target
[Service]
Type=oneshot
ExecStart=/usr/bin/rpm-ostree kargs --replace systemd.unified_cgroup_hierarchy=1 --reboot
[Install]
WantedBy=basic.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment