Skip to content

Commit

Permalink
fix: block incompatible kernel from being installed
Browse files Browse the repository at this point in the history
The current "Requires" lines only ensure the old kernel is
available on the system but it does not prevent fedora from
updating to an incompatible and breaking user's system.

Set Conflicts to block incompatible kernels from being installed.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: tleydxdy <[email protected]>
Closes openzfs#16139
  • Loading branch information
tleydxdy authored and behlendorf committed Nov 21, 2024
1 parent d7abeef commit 3c0b8da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpm/generic/zfs-dkms.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Requires(post): gcc, make, perl, diffutils
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected]
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected]
Conflicts: kernel-devel < @ZFS_META_KVER_MIN@, kernel-devel > @[email protected]
Obsoletes: spl-dkms <= %{version}
%endif
Provides: %{module}-kmod = %{version}
Expand Down

0 comments on commit 3c0b8da

Please sign in to comment.