Skip to content
Permalink
Browse files

coreos-base: add cgroup options to cmdline for OEMs

To make systemd cgroups work for OEMs like AWS EC2, we should add more
cmdline options to OEM-specific grub.cfg files.
  • Loading branch information...
dongsupark committed Mar 1, 2019
1 parent 8184af2 commit f4dde83caf457fc5b480edbbb54d550632c92cf3
@@ -4,7 +4,7 @@ set oem_id="ec2"

# Blacklist the Xen framebuffer module so it doesn't get loaded at boot
# Disable `ens3` style names, so eth0 is used for both ixgbevf or xen.
set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0"
set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false"

if [ "$grub_platform" = pc ]; then
set linux_console="console=ttyS0,115200n8"
@@ -1,7 +1,7 @@
# Flatcar GRUB settings

set oem_id="packet"
set linux_append="flatcar.autologin"
set linux_append="flatcar.autologin systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false"

if [ "$grub_cpu" = i386 ]; then
set gfxpayload="1024x768x8,1024x768"
@@ -10,4 +10,4 @@ set timeout=15
set linux_console="console=ttyS4,115200n8 8250.nr_uarts=5"

# Blacklist MEI, the firmware is just plain broken.
set linux_append="modprobe.blacklist=mei_me net.ifnames=0"
set linux_append="modprobe.blacklist=mei_me net.ifnames=0 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false"

0 comments on commit f4dde83

Please sign in to comment.
You can’t perform that action at this time.