13 lines
296 B
Bash
Executable File
13 lines
296 B
Bash
Executable File
#!/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 lxd --group lxd ${OPTS:- --verbose}
|