From 92e99aa73143a452269a17af2b64ec35e111e25a0343f859279ba497beb0518a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 16 May 2024 15:37:13 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main libcontainers-common revision 54f0b39a37368aa325cee22162aeec6c --- libcontainers-common.changes | 4 ++-- libcontainers-common.spec | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libcontainers-common.changes b/libcontainers-common.changes index 985245c..6619623 100644 --- a/libcontainers-common.changes +++ b/libcontainers-common.changes @@ -1,9 +1,9 @@ ------------------------------------------------------------------- Wed Apr 24 14:56:17 UTC 2024 - Danish Prakash -- Introduce new subpackage that ships registries.conf which uses +- Introduce new subpackage that ships registries.conf that uses registry.suse.com as the only unqualified registry while pulling images on - SL Micro. (SMO-376) + SL Micro and SP6. (jsc#SMO-376, jsc#PED-8289) ------------------------------------------------------------------- Mon Apr 8 15:15:18 UTC 2024 - Danish Prakash diff --git a/libcontainers-common.spec b/libcontainers-common.spec index 45a5606..11ca3ee 100644 --- a/libcontainers-common.spec +++ b/libcontainers-common.spec @@ -60,9 +60,10 @@ Requires: libcontainers-policy >= %{version} Suggests: (libcontainers-policy-openSUSE if openSUSE-release) # Default to SUSE registry on SL Micro, # keep SUSE, openSUSE and dockerhub registries otherwise. -# (SMO-376) +# (jsc#SMO-376, jsc#PED-8289) Requires: registries-conf >= %{version} -Suggests: (registries-conf-sl-micro if product(SL-Micro)) +Suggests: (registries-conf-suse if (product(SL-Micro) or (product(SUSE_SLE) >= 15.5))) +Suggests: (registries-conf-default if openSUSE-release) Provides: libcontainers-image = %{version} Provides: libcontainers-storage = %{version} Obsoletes: libcontainers-image < %{version} @@ -99,24 +100,23 @@ Conflicts: libcontainers-openSUSE-policy %description -n libcontainers-default-policy This package ships the default /etc/containers/policy.json -%package -n registries-conf-sl-micro +%package -n registries-conf-suse Summary: Defaults to SUSE Registry on SL Micro Provides: registries-conf = %{version}-%{release} -RemovePathPostfixes: .sl-micro +RemovePathPostfixes: .suse Conflicts: registries-conf-default -Requires: product(SL-Micro) -%description -n registries-conf-sl-micro -Ships registries.conf that uses registry.suse.com as the only unqualified registry on SL Micro. +%description -n registries-conf-suse +Ships a modified registries.conf with registry.suse.com as the only unqualified search registry. %package -n registries-conf-default Summary: Add SUSE and openSUSE registries to be used to pull images along with dockerhub Provides: registries-conf = %{version}-%{release} RemovePathPostfixes: .default -Conflicts: registries-conf-sl-micro +Conflicts: registries-conf-suse %description -n registries-conf-default -Ships the default registries.conf including the SUSE and openSUSE registries. +Ships the upstream registries.conf with registry.opensuse.org and registry.suse.com as additional unqualified search registries. %prep cp %{SOURCE9} . @@ -164,7 +164,7 @@ cat >>%{SOURCE5} < registries.conf.sl-micro +sed 's/unqualified-search-registries.*/unqualified-search-registries = \["registry.suse.com"\]/' %{SOURCE6} > registries.conf.suse cd common-%{commonver} %make_build docs @@ -205,7 +205,7 @@ install -D -m 0644 %{SOURCE12} %{buildroot}/%{_sysconfdir}/containers/policy.jso install -D -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/containers/policy.json.default install -D -m 0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/containers/registries.conf.default -install -D -m 0644 registries.conf.sl-micro %{buildroot}/%{_sysconfdir}/containers/registries.conf.sl-micro +install -D -m 0644 registries.conf.suse %{buildroot}/%{_sysconfdir}/containers/registries.conf.suse %post # Comment out ostree_repo if it's blank [boo#1189893] @@ -244,8 +244,8 @@ sed -i 's/ostree_repo = ""/\#ostree_repo = ""/g' %{_sysconfdir}/containers/stora %files -n libcontainers-default-policy %config(noreplace) %{_sysconfdir}/containers/policy.json.default -%files -n registries-conf-sl-micro -%config(noreplace) %{_sysconfdir}/containers/registries.conf.sl-micro +%files -n registries-conf-suse +%config(noreplace) %{_sysconfdir}/containers/registries.conf.suse %files -n registries-conf-default %config(noreplace) %{_sysconfdir}/containers/registries.conf.default