When installing the kexec-tools package, it usually pulls it's whole
dependency chain, which is almost used in every kdump environment, but
actually, it is not needed on machines with 'install_weak_deps=0'.
To fix it, let's change the dependency from strong dependency(Requires)
to weak dependency(Recommends), which allows users to decide whether
they need to install the dracut-network package.
Signed-off-by: Lianbo Jiang <lijiang(a)redhat.com>
---
kexec-tools.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kexec-tools.spec b/kexec-tools.spec
index 6bada4ab66cc..c63ad30d6b3b 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -57,9 +57,9 @@ Requires(preun): systemd-units
Requires(postun): systemd-units
Requires(pre): coreutils sed zlib
Requires: dracut >= 047-34.git20180604
-Requires: dracut-network >= 044-117
Requires: dracut-squash >= 049-4
Requires: ethtool
+Recommends: dracut-network >= 044-117
BuildRequires: zlib-devel zlib zlib-static elfutils-devel-static glib2-devel bzip2-devel
ncurses-devel bison flex lzo-devel snappy-devel
BuildRequires: pkgconfig intltool gettext
BuildRequires: systemd-units
--
2.17.1
Show replies by thread