diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-01-07 15:36:01 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-01-07 15:38:46 +0200 |
commit | 862a2b98b7b8abf9062a0f562a2e7b9670e82752 (patch) | |
tree | 7d083884ef1bcd8ee55a66edd543778b30959f3b /app-containers | |
parent | dev-libs/ell: sync keywords to live (diff) | |
download | gentoo-862a2b98b7b8abf9062a0f562a2e7b9670e82752.tar.gz gentoo-862a2b98b7b8abf9062a0f562a2e7b9670e82752.tar.bz2 gentoo-862a2b98b7b8abf9062a0f562a2e7b9670e82752.zip |
app-containers/lxd: fix the sed for OVMF path, add notes about vm's
- lxd supports virtual machines through qemu which wasn't advertised
in the ebuild.
Closes: https://bugs.gentoo.org/830612
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-containers')
-rw-r--r-- | app-containers/lxd/lxd-4.0.8-r2.ebuild (renamed from app-containers/lxd/lxd-4.0.8-r1.ebuild) | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app-containers/lxd/lxd-4.0.8-r1.ebuild b/app-containers/lxd/lxd-4.0.8-r2.ebuild index 11314dde35da..f33144850c9d 100644 --- a/app-containers/lxd/lxd-4.0.8-r1.ebuild +++ b/app-containers/lxd/lxd-4.0.8-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -47,6 +47,10 @@ CONFIG_CHECK=" ~SECCOMP ~USER_NS ~UTS_NS + + ~KVM + ~MACVTAP + ~VHOST_VSOCK " ERROR_IPC_NS="CONFIG_IPC_NS is required." @@ -55,6 +59,10 @@ ERROR_PID_NS="CONFIG_PID_NS is required." ERROR_SECCOMP="CONFIG_SECCOMP is required." ERROR_UTS_NS="CONFIG_UTS_NS is required." +WARNING_KVM="CONFIG_KVM and CONFIG_KVM_AMD/-INTEL is required for virtual machines." +WARNING_MACVTAP="CONFIG_MACVTAP is required for virtual machines." +WARNING_VHOST_VSOCK="CONFIG_VHOST_VSOCK is required for virtual machines." + # Go magic. QA_PREBUILT="/usr/bin/fuidshift /usr/bin/lxc @@ -91,6 +99,7 @@ src_prepare() { -e "s:/usr/share/OVMF:/usr/share/edk2-ovmf:g" \ -e "s:OVMF_VARS.ms.fd:OVMF_VARS.secboot.fd:g" \ doc/environment.md \ + lxd/apparmor/instance.go \ lxd/apparmor/instance_qemu.go \ lxd/instance/drivers/driver_qemu.go || die "Failed to fix hardcoded ovmf paths." @@ -167,9 +176,12 @@ pkg_postinst() { elog elog "Consult https://wiki.gentoo.org/wiki/LXD for more information," elog "including a Quick Start." + elog "For virtual machine support, see:" + elog "https://wiki.gentoo.org/wiki/LXD#Virtual_machines" elog elog "Please run 'lxc-checkconfig' to see all optional kernel features." elog + optfeature "virtual machine support" app-emulation/qemu[spice,usbredir,virtfs] optfeature "btrfs storage backend" sys-fs/btrfs-progs optfeature "lvm2 storage backend" sys-fs/lvm2 optfeature "zfs storage backend" sys-fs/zfs |