#!/bin/sh _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 lxd --group lxd ${OPTS:- --verbose}