This commit is contained in:
pvincent
2026-08-18 12:11:19 +04:00
parent 675a156f3f
commit 7cb8306c23
2 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ function assert_root {
}
function assert_container {
cat /proc/self/cgroup | awk -F / '{print $NF}' | grep -qE '^(session-c|\.lxc)'
cat /proc/self/cgroup | grep -E '/session-c[0-9]+.scope'
}
function assert_system_mode {