From 2684e4b8149ff43bd8e392b0a6ad2434dc21215c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 22 Nov 2025 10:15:05 -0600 Subject: [PATCH] Add Conflicts to prevent upgrades 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_. --- gasket-driver.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gasket-driver.spec b/gasket-driver.spec index 229457e..b012b12 100644 --- a/gasket-driver.spec +++ b/gasket-driver.spec @@ -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