diff --git a/layers/meta-belden-coreos-bsp/recipes-kernel/linux/files/k3s_kernel_adaptions.cfg b/layers/meta-belden-coreos-bsp/recipes-kernel/linux/files/k3s_kernel_adaptions.cfg new file mode 100644 index 0000000..86731e5 --- /dev/null +++ b/layers/meta-belden-coreos-bsp/recipes-kernel/linux/files/k3s_kernel_adaptions.cfg @@ -0,0 +1,8 @@ +#this file contains the necssary kernel adaption that k3s an containerd require +#Reference +#k3s config check: https://raw.githubusercontent.com/k3s-io/k3s/master/contrib/util/check-config.sh +#container config check: https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh +#these scripts are provided by moby and rancher +CONFIG_OABI_COMPAT=n +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_SECCOMP_FILTER=y diff --git a/layers/meta-belden-coreos-bsp/recipes-kernel/linux/linux-yocto_5.15.bbappend b/layers/meta-belden-coreos-bsp/recipes-kernel/linux/linux-yocto_5.15.bbappend index 913e80a..4f72e0b 100644 --- a/layers/meta-belden-coreos-bsp/recipes-kernel/linux/linux-yocto_5.15.bbappend +++ b/layers/meta-belden-coreos-bsp/recipes-kernel/linux/linux-yocto_5.15.bbappend @@ -1,3 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" KMACHINE:vm-x64 ?= "common-pc-64" COMPATIBLE_MACHINE:vm-x64 = "vm-x64" @@ -11,3 +12,5 @@ COMPATIBLE_MACHINE:beaglebone = "beaglebone" LINUX_VERSION:beaglebone = "5.15.54" require ${@bb.utils.contains("COMBINED_FEATURES", "efi", "linux-yocto-coreos-efi.inc", "", d)} + +SRC_URI += " file://k3s_kernel_adaptions.cfg"