Skip to content

Commit fc75060

Browse files
authored
containerd2: provide the capabilities of old-package containerd and obsolete it (#12063)
As containerd2 package is introduced to azurelinux, and containerd2 now is default for AZL 3.0 preview in AKS. There will be conflicts when users install moby-engine in a VM or an AKS node with containerd2 installed as moby-engine requires containerd package. This PR adds "Provides/Obsoletes: containerd" to shift all installs of containerd to containerd2 and resolve the conflicts while installing moby-engine.
1 parent e34141b commit fc75060

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

SPECS/containerd2/containerd2.spec

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Summary: Industry-standard container runtime
66
Name: %{upstream_name}2
77
Version: 2.0.0
8-
Release: 4%{?dist}
8+
Release: 5%{?dist}
99
License: ASL 2.0
1010
Group: Tools/Container
1111
URL: https://www.containerd.io
@@ -27,6 +27,14 @@ BuildRequires: systemd-rpm-macros
2727

2828
Requires: runc >= 1.2.2
2929

30+
# This package replaces the old name of containerd
31+
Provides: containerd = %{version}-%{release}
32+
Obsoletes: containerd < %{version}-%{release}
33+
34+
# This package replaces the old name of moby-containerd
35+
Provides: moby-containerd = %{version}-%{release}
36+
Obsoletes: moby-containerd < %{version}-%{release}
37+
3038
%description
3139
containerd is an industry-standard container runtime with an emphasis on
3240
simplicity, robustness and portability. It is available as a daemon for Linux
@@ -81,6 +89,9 @@ fi
8189
%dir /opt/containerd/lib
8290

8391
%changelog
92+
* Mon Mar 03 2025 Nan Liu <liunan@microsoft.com> - 2.0.0-5
93+
- Add "Provides/Obsoletes:" to shift all installs of containerd and moby-containerd to containerd2
94+
8495
* Mon Feb 03 2025 Mitch Zhu <mitchzhu@microsoft.com> - 2.0.0-4
8596
- Fix ptest in tardev-snapshotter support patch
8697

0 commit comments

Comments
 (0)