From 3100646b69177df835fb0d32bf5efef812d608c1 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Tue, 8 Dec 2020 10:46:11 +0100 Subject: [PATCH] packaging: Fix: explicitly unload old tuxedo_cc_wmi at rpm install --- src_pkg/rpm_pkg.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src_pkg/rpm_pkg.spec b/src_pkg/rpm_pkg.spec index 8559855..e3487e7 100644 --- a/src_pkg/rpm_pkg.spec +++ b/src_pkg/rpm_pkg.spec @@ -88,6 +88,9 @@ for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do systemctl stop tccd 2>&1 || true fi + % Explicitly unload old tuxedo_cc_wmi if loaded at this point + rmmod tuxedo_cc_wmi > /dev/null 2>&1 || true + echo "(Re)load modules if possible" rmmod tuxedo_io > /dev/null 2>&1 || true