Merge pull request #6418 from bobbypage/cgroupv2-cos-fix
test: e2e node COS cgroupv2 script
This commit is contained in:
commit
62a4e7020d
@ -30,7 +30,7 @@ if [ "${CONTAINERD_CGROUPV2:-"false"}" == "true" ]; then
|
|||||||
OS_ID="$(. /etc/os-release && echo "$ID")"
|
OS_ID="$(. /etc/os-release && echo "$ID")"
|
||||||
fi
|
fi
|
||||||
if [ "${OS_ID}" = "cos" ]; then
|
if [ "${OS_ID}" = "cos" ]; then
|
||||||
if ! grep -q 'systemd.unified_cgroup_hierarchy=true' /proc/cmdline; then
|
if ! grep -q 'systemd.unified_cgroup_hierarchy=true' /proc/cmdline && [ "$(stat -fc %T /sys/fs/cgroup/)" != "cgroup2fs" ]; then
|
||||||
echo "Setting up cgroupv2"
|
echo "Setting up cgroupv2"
|
||||||
|
|
||||||
mount_path="/tmp/esp"
|
mount_path="/tmp/esp"
|
||||||
|
Loading…
Reference in New Issue
Block a user