Add Conflicts to prevent upgrades
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good

Since _kernel_ is an `installonly` package, "upgrading" actually
installs a new version instead of replacing the installed version.
Because of this, the `Requires` tag of _gasket-driver_ does not prevent
upgrading to a new version of the kernel, as the requirement will still
be satisfied by the old version.

To fully prevent upgrading to a new kernel for which there is no
_gasket-driver_ (which would prevent Frigate from starting after the
reboot), we need to add a `Conflicts` tag.  This will not allow RPM to
install a version of _kernel_ newer than the one that matches
_gasket-driver_.
This commit is contained in:
2025-11-22 10:15:05 -06:00
parent 63d4723e8b
commit 2684e4b814

View File

@@ -9,7 +9,7 @@
Name: gasket-driver
Version: 0.0.git%{git_revision}
Release: 2.k%{kernel_version}%{?dist}
Release: 3.k%{kernel_version}%{?dist}
Summary: The Coral Gasket Driver allows usage of the Coral EdgeTPU on Linux systems
License: GPL-2.0
@@ -20,6 +20,7 @@ Patch1: 0002-Update-gasket_page_table.c-Fix-MODULE_IMPORT_NS.patch
BuildRequires: kernel-devel
Requires: kernel-core == %{kernel_version}
Conflicts: kernel-core > %{kernel_version}
Requires(post): kmod
%description