diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-02-17 15:19:53 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-02-17 15:21:53 -0500 |
commit | 82698d923439e3637016f8334cfba215afe49a55 (patch) | |
tree | b1bc1dbaed7d56c5761c75238b40edc1b66e5797 /recipes-containers/skopeo/skopeo_git.bb | |
parent | a0baf4ed455828c7aed068337547c3037969e643 (diff) | |
download | meta-virtualization-82698d923439e3637016f8334cfba215afe49a55.tar.gz |
skopeo: use container-host bbclass to provide configuration
Instead of providing storage and registries configuration files
in this package, we inherit container-host which will provide a
common definition of these configs.
This allows multiple packages to ensure that the configuration
files are present, and not conflict in their installation.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/skopeo/skopeo_git.bb')
-rw-r--r-- | recipes-containers/skopeo/skopeo_git.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/recipes-containers/skopeo/skopeo_git.bb b/recipes-containers/skopeo/skopeo_git.bb index a719671c..66168ca8 100644 --- a/recipes-containers/skopeo/skopeo_git.bb +++ b/recipes-containers/skopeo/skopeo_git.bb | |||
@@ -21,8 +21,6 @@ RDEPENDS:${PN} = " \ | |||
21 | 21 | ||
22 | SRC_URI = " \ | 22 | SRC_URI = " \ |
23 | git://github.com/containers/skopeo;branch=main;protocol=https \ | 23 | git://github.com/containers/skopeo;branch=main;protocol=https \ |
24 | file://storage.conf \ | ||
25 | file://registries.conf \ | ||
26 | file://0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch \ | 24 | file://0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch \ |
27 | " | 25 | " |
28 | 26 | ||
@@ -35,6 +33,8 @@ S = "${WORKDIR}/git" | |||
35 | inherit goarch | 33 | inherit goarch |
36 | inherit pkgconfig | 34 | inherit pkgconfig |
37 | 35 | ||
36 | inherit container-host | ||
37 | |||
38 | # This CVE was fixed in the container image go library skopeo is using. | 38 | # This CVE was fixed in the container image go library skopeo is using. |
39 | # See: | 39 | # See: |
40 | # https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10214 | 40 | # https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10214 |
@@ -83,9 +83,6 @@ do_install() { | |||
83 | 83 | ||
84 | install ${S}/src/import/bin/skopeo ${D}/${sbindir}/ | 84 | install ${S}/src/import/bin/skopeo ${D}/${sbindir}/ |
85 | install ${S}/src/import/default-policy.json ${D}/${sysconfdir}/containers/policy.json | 85 | install ${S}/src/import/default-policy.json ${D}/${sysconfdir}/containers/policy.json |
86 | |||
87 | install ${WORKDIR}/storage.conf ${D}/${sysconfdir}/containers/storage.conf | ||
88 | install ${WORKDIR}/registries.conf ${D}/${sysconfdir}/containers/registries.conf | ||
89 | } | 86 | } |
90 | 87 | ||
91 | do_install:append:class-native() { | 88 | do_install:append:class-native() { |