test: extend cgroupv2 case to support runtime: cgroups:

Signed-off-by: David Scott <dave@recoil.org>
This commit is contained in:
David Scott 2021-10-28 16:30:07 +01:00
parent f14ad44ce4
commit 521b323270
2 changed files with 5 additions and 0 deletions

View File

@ -11,4 +11,6 @@ DEVICE=/dev/sdb
mount | grep cgroup2 || failed
stat /sys/fs/cgroup/newcgroup || failed
printf "cgroup2 detected, suite PASSED\n" >&1

View File

@ -7,6 +7,9 @@ init:
onboot:
- name: test
image: alpine:3.13
runtime:
cgroups:
- newcgroup
binds:
- /check.sh:/check.sh
- /run:/run