Skip to content

Commit 3c0b8da

Browse files
tleydxdybehlendorf
authored andcommitted
fix: block incompatible kernel from being installed
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
1 parent d7abeef commit 3c0b8da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rpm/generic/zfs-dkms.spec.in

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Requires(post): gcc, make, perl, diffutils
3232
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
3333
Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected]
3434
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @[email protected]
35+
Conflicts: kernel-devel < @ZFS_META_KVER_MIN@, kernel-devel > @[email protected]
3536
Obsoletes: spl-dkms <= %{version}
3637
%endif
3738
Provides: %{module}-kmod = %{version}

0 commit comments

Comments
 (0)