Skip to content

Commit

Permalink
search for fixed strings when searching for fixed strings
Browse files Browse the repository at this point in the history
these are not regexes
  • Loading branch information
BenTheElder committed May 13, 2022
1 parent 4540f34 commit 1a5df20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/base/files/usr/local/bin/entrypoint
Expand Up @@ -234,7 +234,7 @@ fix_cgroup() {
# See: https://man7.org/linux/man-pages/man7/cgroups.7.html
echo 'INFO: fix cgroup mounts for all subsystems'
local cgroup_subsystems
cgroup_subsystems=$(findmnt -lun -o source,target -t cgroup | grep "${current_cgroup}" | awk '{print $2}')
cgroup_subsystems=$(findmnt -lun -o source,target -t cgroup | grep -F "${current_cgroup}" | awk '{print $2}')
# Unmount the cgroup subsystems that are not known to runtime used to
# run the container we are in. Those subsystems are not properly scoped
# (i.e. the root cgroup is exposed, rather than something like docker/xxxx).
Expand All @@ -245,7 +245,7 @@ fix_cgroup() {
#
# See https://github.com/kubernetes/kubernetes/issues/109182
local unsupported_cgroups
unsupported_cgroups=$(findmnt -lun -o source,target -t cgroup | grep_allow_nomatch -v "${current_cgroup}" | awk '{print $2}')
unsupported_cgroups=$(findmnt -lun -o source,target -t cgroup | grep_allow_nomatch -v -F "${current_cgroup}" | awk '{print $2}')
if [ -n "$unsupported_cgroups" ]; then
local mnt
echo "$unsupported_cgroups" |
Expand Down

0 comments on commit 1a5df20

Please sign in to comment.