From a291701c87822382e28ad583edafdb55941eae6d Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Mon, 19 Dec 2022 17:38:31 -0700 Subject: [PATCH] spec: Add module-init-tools dependency to nodedev and lxc drivers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only the nodedev and lxc drivers require module-init-tools. Remove the dependency from libvirt-daemon-common and add it to the nodedev and lxc drivers. This avoids enforcing the dependency on all users of libvirt-daemon-common. Signed-off-by: Jim Fehlig Reviewed-by: Daniel P. Berrangé Reviewed-by: Andrea Bolognani --- libvirt.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 9dd695a07e..fb42656adb 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -451,8 +451,6 @@ Requires: libvirt-libs = %{version}-%{release} # Recommends here will install libvirt-client by default (if available), but # RPM won't complain if the package is unavailable, masked, or removed later. Recommends: libvirt-client = %{version}-%{release} -# for modprobe of pci devices -Requires: module-init-tools # for /sbin/ip Requires: iproute # for /sbin/tc @@ -574,6 +572,8 @@ Requires: libvirt-libs = %{version}-%{release} Requires: systemd >= 185 # For managing persistent mediated devices Requires: mdevctl +# for modprobe of pci devices +Requires: module-init-tools %description daemon-driver-nodedev The nodedev driver plugin for the libvirtd daemon, providing @@ -782,6 +782,8 @@ Requires: libvirt-libs = %{version}-%{release} # There really is a hard cross-driver dependency here Requires: libvirt-daemon-driver-network = %{version}-%{release} Requires: systemd-container +# for modprobe of nbd driver +Requires: module-init-tools %description daemon-driver-lxc The LXC driver plugin for the libvirtd daemon, providing