Skip to content

Commit

Permalink
Merge pull request #314 from glorpen/openrc
Browse files Browse the repository at this point in the history
Skip Systemd cgroup creation on systems with OpenRC
  • Loading branch information
muntac authored Dec 4, 2020
2 parents d3b9610 + 490674a commit babf5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sanitize_cgroups() {
fi
done

if ! test -e /sys/fs/cgroup/systemd ; then
if [ ! -e /sys/fs/cgroup/systemd ] && [ $(cat /proc/self/cgroup | grep '^1:name=openrc:' | wc -l) -eq 0 ]; then
mkdir /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd none /sys/fs/cgroup/systemd
fi
Expand Down

0 comments on commit babf5a7

Please sign in to comment.