Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion isolate-check-environment
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ cgroup_check() {
}

# Check that cgroups are enabled.
if ! cg_root=$(isolate --print-cg-root 2>/dev/null) ; then
isolate_bin="$(dirname -- "$0")/isolate"
[ -x "$isolate_bin" ] || isolate_bin=isolate
if ! cg_root=$("$isolate_bin" --print-cg-root 2>/dev/null) ; then
warn "cgroup root not found. isolate --cg cannot be used."
exit_status=1
else
Expand Down