spec: Add module-init-tools dependency to nodedev and lxc drivers

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 <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Jim Fehlig 2022-12-19 17:38:31 -07:00
parent 017e828785
commit a291701c87

View File

@ -451,8 +451,6 @@ Requires: libvirt-libs = %{version}-%{release}
# Recommends here will install libvirt-client by default (if available), but # Recommends here will install libvirt-client by default (if available), but
# RPM won't complain if the package is unavailable, masked, or removed later. # RPM won't complain if the package is unavailable, masked, or removed later.
Recommends: libvirt-client = %{version}-%{release} Recommends: libvirt-client = %{version}-%{release}
# for modprobe of pci devices
Requires: module-init-tools
# for /sbin/ip # for /sbin/ip
Requires: iproute Requires: iproute
# for /sbin/tc # for /sbin/tc
@ -574,6 +572,8 @@ Requires: libvirt-libs = %{version}-%{release}
Requires: systemd >= 185 Requires: systemd >= 185
# For managing persistent mediated devices # For managing persistent mediated devices
Requires: mdevctl Requires: mdevctl
# for modprobe of pci devices
Requires: module-init-tools
%description daemon-driver-nodedev %description daemon-driver-nodedev
The nodedev driver plugin for the libvirtd daemon, providing 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 # There really is a hard cross-driver dependency here
Requires: libvirt-daemon-driver-network = %{version}-%{release} Requires: libvirt-daemon-driver-network = %{version}-%{release}
Requires: systemd-container Requires: systemd-container
# for modprobe of nbd driver
Requires: module-init-tools
%description daemon-driver-lxc %description daemon-driver-lxc
The LXC driver plugin for the libvirtd daemon, providing The LXC driver plugin for the libvirtd daemon, providing