1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

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
This commit is contained in:
Zdenek Kabelac 2024-04-10 17:29:21 +02:00
parent ac3cee638b
commit 543011fa86

View File

@ -15,6 +15,20 @@
%global enable_lvmlockd_dlm 0 %global enable_lvmlockd_dlm 0
%global enable_lvmlockd_sanlock 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} %if %{enable_udev}
%service lvmpolld 1 %service lvmpolld 1
%endif %endif