Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/docker-engine/rpm/docker-ce.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Recommends: docker-ce-rootless-extras
Requires: container-selinux
Requires: systemd
%if 0%{?rhel} >= 10
# RHEL 10 moved iptables-related kernel modules to kernel-modules-extra.
# Use the matched metapackage to cover subsequent kernel upgrades.
Recommends: kernel-modules-extra-matched

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know if this was a regression caused by #600?

In this case, we might need to make it

Suggested change
Recommends: kernel-modules-extra-matched
Requires: kernel-modules-extra-matched

otherwise this only could be hit by the "no install recommends" install, and so in this case it would also not install that kernel-modules-extra-matched

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Recommends: kernel-modules-extra-matched
Requires: kernel-modules-extra-matched if redhat-release >= 10.1 else (kernel-modules-extra if kernel-modules-core)

Requiring kernel-modules-extra-matched is safe for EL 10.1+ as it's an empty marker package which is inert unless a kernel is installed. The else-branch covers 10.0 which lacks the -matched package, requiring the modules if a kernel is installed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know if this was a regression caused by #600?

I did some testing on an AlmaLinux 10.3 VM, and was able to reproduce; looks like it's not related;


Both iptables-nft and kernel-modules-extra were installed, but the latter was installed for a newer kernel (6.12.0-264.20.1.el10_3), not the running kernel (6.12.0-264.16.1.el10_3).

The iptables-nft package's own recommendation:

Recommends: (kernel-modules-extra if kernel-modules-core)

was therefore already satisfied. Explicitly installing iptables-nft also resulted in a no-op.

Installing kernel-modules-extra matching the running kernel resolved the daemon startup failure.

This demonstrates why we need the kernel-modules-extra-matched metapackage where available, rather than just a dependency on kernel-modules-extra. Reverting our iptables dependency from Recommends to Requires would not address this problem.


# EL10 UBI repositories do not provide iptables or iptables-nft.
Recommends: (iptables-nft or iptables)
%else
Expand Down