diff options
author | Bui Quang Minh <minhquangbui99@gmail.com> | 2022-09-06 18:04:08 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-11-02 07:35:04 +0300 |
commit | d3ed3e90876964334526000f275c6f13cbf2e856 (patch) | |
tree | 664c6978907cb04df125ea8534c9cb81e75e2fd7 | |
parent | 030c5ab9738a26904b820991fa0ab2c51ee5c2da (diff) |
ci: Make cpuset move to cgroup-v2 hierarchy
As cgroupv2_00, cgroupv2_01 need cpuset in cgroup-v2 hierarchy to check CRIU
handle cgroup-v2 properly, umount cpuset in cgroup-v1 to make it move to
cgroup-v2.
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
-rw-r--r-- | scripts/ci/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/ci/Makefile b/scripts/ci/Makefile index 30dd9ebeb..48a1e1887 100644 --- a/scripts/ci/Makefile +++ b/scripts/ci/Makefile @@ -1,4 +1,10 @@ -local: +# Umount cpuset in cgroupv1 to make it move to cgroupv2 +cpuset-cgroupv2: + if [ -d /sys/fs/cgroup/cpuset ]; then \ + umount /sys/fs/cgroup/cpuset; \ + fi + +local: cpuset-cgroupv2 ./run-ci-tests.sh .PHONY: local |