parent
45df84b706
commit
70a9bc24e5
|
@ -0,0 +1,15 @@
|
|||
Add sub{u,g}ids for root to create unprivileged containers:
|
||||
|
||||
$ echo "root:1000000:65536" | sudo tee -a /etc/subuid /etc/subgid
|
||||
|
||||
Start lxd service:
|
||||
|
||||
$ sudo ln -s /etc/sv/lxd /var/service
|
||||
|
||||
Run LXD initialization:
|
||||
|
||||
$ sudo lxd init
|
||||
|
||||
To use lxd client your user must be added to the 'lxd' group:
|
||||
|
||||
$ sudo usermod -aG lxd <username>
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
_systemd_cgrp="/sys/fs/cgroup/systemd"
|
||||
if [ ! -d ${_systemd_cgrp} ]; then
|
||||
mkdir ${_systemd_cgrp}
|
||||
fi
|
||||
mount -t cgroup -o none,name=systemd cgroup ${_systemd_cgrp}
|
||||
exec lxd --group lxd 2>&1
|
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'lxd'
|
||||
pkgname=lxd
|
||||
version=2.20
|
||||
revision=1
|
||||
build_style=go
|
||||
go_import_path="github.com/lxc/lxd"
|
||||
go_package="${go_import_path}/lxd ${go_import_path}/lxc"
|
||||
hostmakedepends="git bzr pkg-config"
|
||||
makedepends="lxc-devel acl-devel"
|
||||
depends="lxc liblxc acl acl-progs rsync squashfs-tools xz dnsmasq iptables"
|
||||
short_desc="LXD is a next generation system container manager"
|
||||
maintainer="iaroki <iaroki@protonmail.com>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://linuxcontainers.org/lxd"
|
||||
distfiles="https://github.com/lxc/lxd/releases/download/lxd-${version}/lxd-${version}.tar.gz"
|
||||
checksum=0b715c65787d256213cf7e1576f502383bf267fc4d06476fcce016ef3df89cac
|
||||
system_groups="lxd"
|
||||
|
||||
post_install() {
|
||||
vinstall config/bash/lxd-client 644 /usr/share/bash-completion/completions lxd
|
||||
vlicense COPYING LICENSE
|
||||
vsv lxd
|
||||
}
|
Loading…
Reference in New Issue