diff options
author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-07-11 20:53:03 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-07-15 17:11:58 -0400 |
commit | 2e05df2f4379c8e013161f6b815f8d01315565c7 (patch) | |
tree | 8ce1f22ebd1fb35f7f88abaed6e4a015d7849e1b /recipes-containers | |
parent | d9bad067f7fa4c50eef01102cf01982a89f9ed80 (diff) | |
download | meta-virtualization-2e05df2f4379c8e013161f6b815f8d01315565c7.tar.gz |
podman: Silence docker emulation warnings
Podman can run in via a docker symlink emulating docker commands. By
default this generates a runtime warning. This change silences it via
the provided interface.
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers')
-rw-r--r-- | recipes-containers/podman/podman_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index 547bc4e7..961cd187 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
@@ -93,6 +93,10 @@ do_install() { | |||
93 | if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then | 93 | if ${@bb.utils.contains('PACKAGECONFIG', 'docker', 'true', 'false', d)}; then |
94 | oe_runmake install.docker DESTDIR="${D}" | 94 | oe_runmake install.docker DESTDIR="${D}" |
95 | fi | 95 | fi |
96 | |||
97 | # Silence docker emulation warnings. | ||
98 | mkdir -p ${D}/etc/containers | ||
99 | touch ${D}/etc/containers/nodocker | ||
96 | } | 100 | } |
97 | 101 | ||
98 | FILES:${PN} += " \ | 102 | FILES:${PN} += " \ |