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@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
Hi, all
As we discussed in irc channel, for the network dumps, kdump will fail in second kernel without the dracut-network installed, maybe people do not aware of the whole risks. In view of this, the more discussion is needed. Any thoughts?
Also add the reporter, Harald Reindl.
Thanks. Lianbo
在 2020年04月21日 11:26, Lianbo Jiang 写道:
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@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