From 543011fa86d20f921ccb5d6d820cf2fe6db1d0c8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 10 Apr 2024 17:29:21 +0200 Subject: [PATCH] spec: when building rpm on test machine disable event_activation This is initial test how to disable event_activation on machines, where lvm2-testsuite packages are installed with its lvm.conf file. TODO: find more elegant mechanism --- spec/source.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spec/source.inc b/spec/source.inc index 4effb45c7..552752636 100644 --- a/spec/source.inc +++ b/spec/source.inc @@ -15,6 +15,20 @@ %global enable_lvmlockd_dlm 0 %global enable_lvmlockd_sanlock 0 +############################################################# +# +# Disable event_activation when creating packages for system +# with installed lvm2-testsuite +# +# This is used for internal package testing to avoid +# updating lvm.conf after test suite installation. +# +%if %{exists:/usr/share/lvm2-testsuite/lib/lvm} + %with default-event-activation 0 +%else + %with default-event-activation 1 +%endif + %if %{enable_udev} %service lvmpolld 1 %endif