diff --git a/srcpkgs/incus/files/incus/run b/srcpkgs/incus/files/incus/run index d189b4395b90ff..434018a1f77c7d 100644 --- a/srcpkgs/incus/files/incus/run +++ b/srcpkgs/incus/files/incus/run @@ -1,4 +1,11 @@ #!/bin/sh exec 2>&1 +_systemd_cgrp="/sys/fs/cgroup/systemd" +if [ ! -d ${_systemd_cgrp} ]; then + mkdir ${_systemd_cgrp} +fi +if ! mountpoint -q "${_systemd_cgrp}"; then + mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp} +fi [ -r conf ] && . ./conf exec /usr/libexec/incus/incusd --group _incus-admin --syslog ${OPTS:- --verbose}