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.

Signed-off-by: tleydxdy <shironeko.github@tesaguri.club>
  • Loading branch information
tleydxdy authored Apr 28, 2024
1 parent 21bc066 commit 8ebbadd
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 <= @ZFS_META_KVER_MAX@.999
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Conflicts: kernel-devel < @ZFS_META_KVER_MIN@, kernel-devel > @ZFS_META_KVER_MAX@.999
Obsoletes: spl-dkms <= %{version}
%endif
Provides: %{module}-kmod = %{version}
Expand Down

0 comments on commit 8ebbadd

Please sign in to comment.