Skip to content

Commit

Permalink
Make grep quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Apr 28, 2019
1 parent f7c1e11 commit a31d7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/etc/init.d/k3s
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ EXEC="/usr/bin/k3s"

ensure_cgroup_mount() {
# Unmount /sys/fs/cgroup if mounted as cgroup
grep ' /sys/fs/cgroup cgroup' /proc/self/mounts && umount /sys/fs/cgroup
grep -q ' /sys/fs/cgroup cgroup' /proc/self/mounts && umount /sys/fs/cgroup

grep ' /sys/fs/cgroup tmpfs' /proc/self/mounts \
grep -q ' /sys/fs/cgroup tmpfs' /proc/self/mounts \
|| mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup

for sys in $(awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do
Expand Down

0 comments on commit a31d7ae

Please sign in to comment.