From a748f51ec462f6054fb499d144d3bc0ca944bc12 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 30 Sep 2024 18:35:59 +0000 Subject: runc: package configuration test script Like docker, there is runc / OCI check-config.sh script that is useful when determining if your kernel is properly configured. We can package it in a -check package, and install it to a similar location as the docker variant. Signed-off-by: Bruce Ashfield --- recipes-containers/runc/runc.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index c8e74273..a7c0f618 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc @@ -79,5 +79,11 @@ do_install() { cp ${S}/src/import/runc ${D}/${bindir}/runc ln -sf runc ${D}/${bindir}/docker-runc + + mkdir -p ${D}${datadir}/runc/ + install -m 0755 ${S}/src/import/script/check-config.sh ${D}${datadir}/runc/ } +PACKAGES =+ "${PN}-check" +FILES:${PN}-check += "${datadir}/runc/check-config.sh" +RDEPENDS:${PN}-check += "bash" -- cgit v1.2.3-54-g00ecf