If you can’t wait for this change to hit in FCOS you can enable cgroups v2 (not hybrid cgroups v1/v2) with this ignition block:
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
Note: Once this unit starts it will reboot your node ASAP on the first boot.