From 98daf1fa937643a1a155e0de3f2ebdadc57da27f Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 15 Mar 2021 23:08:59 -0400 Subject: k3s: add seccomp distro feature requirement k3s requires seccomp, and a runc with seccomp enabled for proper operation. runc has a distro feature check to enable seccomp, so if we enforce it as k3s feature, we'll also get a properly built runc and we'll work out of the box. Signed-off-by: Bruce Ashfield --- recipes-containers/k3s/k3s_git.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'recipes-containers') diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb index 8d59987e..6c11f9c2 100644 --- a/recipes-containers/k3s/k3s_git.bb +++ b/recipes-containers/k3s/k3s_git.bb @@ -33,6 +33,9 @@ GO_BUILD_LDFLAGS = "-X github.com/rancher/k3s/pkg/version.Version=${PV} \ " BIN_PREFIX ?= "${exec_prefix}/local" +inherit features_check +REQUIRED_DISTRO_FEATURES ?= "seccomp" + do_compile() { export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" export CGO_ENABLED="1" -- cgit v1.2.3-54-g00ecf