HomeFreeBSD

RPM: Hold back incompatible kernel packages on Fedora

Description

RPM: Hold back incompatible kernel packages on Fedora

A user reported that when your upgrade your kernel packages on Fedora
with ZFS installed, only the kernel-devel package gets held back to the
ZFS-supported version, but not the other kernel packages. So if ZFS only
supports the 6.13 kernel, Fedora will still happily upgrade the kernel
RPM to 6.14, but hold back kernel-devel at 6.13, for example.

This commit includes version checks for the 'kernel-uname-r' dependency,
typically provided by the 'kernel-core' package.

Original-patch-by: @jkool702
Reviewed-by: @jkool702
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #17265
Closes #17271

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Apr 30 2025, 5:52 PM
Parents
rGf86e7140685c: Support for cross-compiling kernel modules
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3b58dd5e1aa2: RPM: Hold back incompatible kernel packages on Fedora (authored by Tony Hutter <hutter2@llnl.gov>).May 27 2025, 9:54 PM