skopeo-1.2.1-12.el9

- configure short-name-mode = "enforcing" for RHEL9

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
Jindrich Novy 2021-02-18 18:20:48 +01:00
parent 05ee2aa9a9
commit 23506144a2
3 changed files with 13 additions and 1 deletions

View File

@ -111,3 +111,5 @@ unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.
# # 2. example-mirror-1.local/mirrors/foo/image:latest # # 2. example-mirror-1.local/mirrors/foo/image:latest
# # 3. internal-registry-for-example.net/bar/myimage:latest # # 3. internal-registry-for-example.net/bar/myimage:latest
# # in order, and use the first one that exists. # # in order, and use the first one that exists.
# Enforcing mode for short names is default for RHEL9.
short-name-mode = "enforcing"

View File

@ -29,7 +29,7 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl
Epoch: 1 Epoch: 1
Name: skopeo Name: skopeo
Version: 1.2.1 Version: 1.2.1
Release: 11%{?dist} Release: 12%{?dist}
Summary: Inspect container images and repositories on registries Summary: Inspect container images and repositories on registries
License: ASL 2.0 License: ASL 2.0
URL: %{git0} URL: %{git0}
@ -237,6 +237,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%{_datadir}/%{name}/test %{_datadir}/%{name}/test
%changelog %changelog
* Thu Feb 18 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-12
- configure short-name-mode = "enforcing" for RHEL9
* Thu Feb 18 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-11 * Thu Feb 18 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.2.1-11
- disable LTO - disable LTO

View File

@ -12,3 +12,10 @@ then
sed -i '/^default_capabilities/a \ sed -i '/^default_capabilities/a \
"NET_RAW",' containers.conf "NET_RAW",' containers.conf
fi fi
if ! grep ^short-name-mode.*= registries.conf
then
echo "# Enforcing mode for short names is default for RHEL9." >> registries.conf
echo 'short-name-mode = "enforcing"' >> registries.conf
else
sed -i 's/^short-name-mode.*=.*/short-name-mode = "enforcing"/'
fi