From e9a8756758e44a9fbf0dad7e1b7b197a24355584 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 30 Sep 2020 12:30:40 -0400 Subject: [PATCH] containers: add a dummy provider for /bin/sh and /bin/env In some scenarios (and package managers), packages post install scripts may have references to /bin/sh. The package manager doesn't know if the scripts will run on the build host or target, so we get a calculated redepnds on /bin/sh base-files and base-passwd fall into this category of having post installs, but no need for /bin/sh on the target. If you know what you are installing, and want the smallest container possible, this package will satisfy the dependency when assembling the rootfs. To enable it, put the following in a configuration file (local.conf or otherwise): PACKAGE_EXTRA_ARCHS_append = " container-dummy-provides" Signed-off-by: Bruce Ashfield --- recipes-core/meta/container-dummy-provides.bb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 recipes-core/meta/container-dummy-provides.bb diff --git a/recipes-core/meta/container-dummy-provides.bb b/recipes-core/meta/container-dummy-provides.bb new file mode 100644 index 00000000..2ab42be3 --- /dev/null +++ b/recipes-core/meta/container-dummy-provides.bb @@ -0,0 +1,6 @@ +DUMMYARCH = "container-dummy-provides" +DUMMYPROVIDES = "\ + /bin/sh \ + /usr/bin/env \ +" +require recipes-core/meta/dummy-sdk-package.inc