From 77d350f8f6aa41d38d2344ad37f0b08c792da5d1 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Mon, 11 Jul 2022 15:36:37 +0200 Subject: [PATCH] skopeo: Add oniro-specific configuration Skopeo is the component that podman uses to comunicate with container registries so we configure skopeo for the OS requirements of the project. The most notable change is that we use the application partition for the root's graphroot. This is where the data (including images) is stored for the root user. We also explicitly set the storage driver and runtime directory. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../recipes-containers/skopeo/skopeo/storage.conf | 8 ++++++++ .../recipes-containers/skopeo/skopeo_%.bbappend | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 meta-oniro-core/recipes-containers/skopeo/skopeo/storage.conf create mode 100644 meta-oniro-core/recipes-containers/skopeo/skopeo_%.bbappend diff --git a/meta-oniro-core/recipes-containers/skopeo/skopeo/storage.conf b/meta-oniro-core/recipes-containers/skopeo/skopeo/storage.conf new file mode 100644 index 00000000..bb5701d4 --- /dev/null +++ b/meta-oniro-core/recipes-containers/skopeo/skopeo/storage.conf @@ -0,0 +1,8 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +[storage] +driver = "overlay" +runroot = "/run/containers/storage" +graphroot="/run/mount/appdata/user-data/containers/root-rootuser" diff --git a/meta-oniro-core/recipes-containers/skopeo/skopeo_%.bbappend b/meta-oniro-core/recipes-containers/skopeo/skopeo_%.bbappend new file mode 100644 index 00000000..04dc5349 --- /dev/null +++ b/meta-oniro-core/recipes-containers/skopeo/skopeo_%.bbappend @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -- GitLab