mirror of
https://github.com/outbackdingo/ack-image-builder.git
synced 2026-01-27 10:18:13 +00:00
Merge pull request #38 from BSWANG/master
fix cpu controller not set in cgroup v2
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
echo $CGROUP_MODE
|
||||
|
||||
if [[ ! -z $CGROUP_MODE ]] && [[ $CGROUP_MODE =~ .*[v,V]2.* ]]; then
|
||||
echo "set cgroup mode to $CGROUP_MODE"
|
||||
if ! grep -q 'systemd.unified_cgroup_hierarchy=1' /etc/default/grub; then
|
||||
grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1"
|
||||
grubby --update-kernel=ALL --args="cgroup_no_v1=all"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user