Skip to content
Snippets Groups Projects
Commit 4680ae8c authored by Konstantin Demin's avatar Konstantin Demin Committed by Konstantin Pavlov
Browse files

30-tune-worker-processes.sh: cgroups2 workaround


cgroups2 may be set in weird way:

<<<
  $ podman run --rm --network=host debian:stable-slim sh -c 'grep cgroup /proc/self/mountinfo ; echo ; cat /proc/self/cgroup'
  754 752 0:27 /../../../../../.. /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime - cgroup2 cgroup2 rw,nsdelegate,memory_recursiveprot

  0::/
>>>

add workaround for that case

Signed-off-by: default avatarKonstantin Demin <rockdrilla@gmail.com>
parent 6b94ddac
Branches
Tags
No related merge requests found
...@@ -158,7 +158,7 @@ __EOF__ ...@@ -158,7 +158,7 @@ __EOF__
"/") "/")
foundroot="${found##* }$mountpoint" foundroot="${found##* }$mountpoint"
;; ;;
"$mountpoint") "$mountpoint" | /../*)
foundroot="${found##* }" foundroot="${found##* }"
;; ;;
esac esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment