diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-01-16 14:26:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-01-19 16:22:06 +0100 |
commit | e29b3cd9b094c94ddd7b8c13e0724a252d53e2cf (patch) | |
tree | 21feb2f536ed4511131ff1aabff081024837d74b | |
parent | 7a41d031b68d2e3b0e1cd64d4266244bbecc2c96 (diff) |
Instead of remount which fails with SKIP in one of my test boxes because
cgroupsv2 rootfs is busy.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rwxr-xr-x | tests/shell/testcases/packetpath/cgroupv2 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/shell/testcases/packetpath/cgroupv2 b/tests/shell/testcases/packetpath/cgroupv2 index 20bd18ae..5c5bea0c 100755 --- a/tests/shell/testcases/packetpath/cgroupv2 +++ b/tests/shell/testcases/packetpath/cgroupv2 @@ -126,7 +126,7 @@ if [ "$doit" != "setup-done" ];then rc=$? else want_inode=$(stat --printf=%i "/sys/fs/cgroup/nft-test1a/") - mount -t cgroup2 cgroup2 /sys/fs/cgroup + mount --bind /sys/fs/cgroup/nft-test1a/ /sys/fs/cgroup/ # /sys/fs/cgroup/ should now match "/sys/fs/cgroup/nft-test1a/cgroup.procs" rootinode=$(stat --printf=%i "/sys/fs/cgroup/") @@ -138,6 +138,8 @@ else do_initial_setup run_test + + umount /sys/fs/group/ fi exit $rc |