diff --git a/libcontainers-common.changes b/libcontainers-common.changes index 3f30012..67a0fdc 100644 --- a/libcontainers-common.changes +++ b/libcontainers-common.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue May 16 12:51:34 UTC 2023 - Danish Prakash + +- Introduce new subpackage that adds SLE-specific mounts only + on SLE systems (if sles-release) hence avoiding superfluous + warnings on non-SLE systems while running podman commands. + (bsc#1211124) + ------------------------------------------------------------------- Wed Apr 26 12:43:41 UTC 2023 - Frederic Crozat diff --git a/libcontainers-common.spec b/libcontainers-common.spec index 4eae29d..224abdd 100644 --- a/libcontainers-common.spec +++ b/libcontainers-common.spec @@ -54,6 +54,8 @@ Source11: https://raw.githubusercontent.com/containers/shortnames/v%{short BuildRequires: go-go-md2man Requires(post): %{_bindir}/grep Requires(post): %{_bindir}/sed +# add SLE-specific mounts for only SLES systems +Requires: (libcontainers-sles-mounts if sles-release) Provides: libcontainers-image = %{version} Provides: libcontainers-storage = %{version} Obsoletes: libcontainers-image < %{version} @@ -64,6 +66,12 @@ BuildArch: noarch Configuration files and manpages shared by tools that are based on the github.com/containers libraries, such as Buildah, CRI-O, Podman and Skopeo. +%package -n libcontainers-sles-mounts +Summary: Default mounts for SLE distributions + +%description -n libcontainers-sles-mounts +Updates /etc/containers/mounts.conf with default mounts for SLE distributions + %prep %setup -q -Tcq -b0 -b1 -b8 # copy the LICENSE file in the build root @@ -95,14 +103,12 @@ cd common-%{commonver} go-md2man -in pkg/hooks/docs/oci-hooks.5.md -out pkg/hooks/docs/oci-hooks.5 cd .. -%if 0%{?is_opensuse} -# no default mounts -%else +# These would only be used on SLE-systems +# via libcontainers-sles-mounts subpackage cat >>%{SOURCE5} <