@@ -5,7 +5,14 @@
rm -f dinit-run.log
-../../dinit -d sd -u -p socket -q \
+# If cgroups support, supply cgroup base path to avoid potential "unable to determine
+# cgroup" message
+CGROUPS_BASE=""
+if ../../dinit --version | grep -q " cgroups"; then
+ CGROUPS_BASE="-b \"\""
+fi
+
+../../dinit -d sd -u -p socket -q $CGROUPS_BASE \
no-command -l dinit-run.log
STATUS=FAIL