I am writing an ebuild for the dracut module dracut-crypt-ssh. This dracut module pulls in the network module included in sys-kernel/dracut. sys-kernel/dracut-044 ebuild does not depend on arping or iputils but the network module needs the arping binary for dhcp client stuff. Obacht: dracut rdepend should be extended like this: !net-analyzer/arping net-misc/iputils[arping] The arping from net-analyzer/arping is not compatible with the network module from dracut.
It's an optional runtime dep, so probably should just be added to pkg_postinst. optfeature "Networking support" net-misc/curl "net-misc/dhcp[client]" \ sys-apps/iproute2 "net-misc/iputils[arping]"
For dracut-044 you cannot use DRACUT_MODULES. All dracut modules will be installed and the network module depends on the arping binary. So I think a clean fix would integrate a network useflag which pulls in arping and the network module or let dracut include the network module AND depend the package providing arping.
(In reply to Michael Stypa from comment #2) This is not going to happen. See bug 498832 for more details. (In reply to Michael Stypa from comment #0) > The arping from net-analyzer/arping is not compatible with the network > module from dracut. BTW there is an attempt to fix it: [1], but it is not correct because "arping2" is a gentoo-specific binary name and in >=net-analyzer/arping/arping-2.16 it was renamed back to just "arping". [1] http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=9853791d376bee4a658d624424b32f7deae6ac79
Are there any plans on fixing this? I just stumbled across this bug while trying to figure out why my stable dracut-0.44-r1 does not work with my net-analyzer/arping I have installed.
Also just ran into this. Adding a sanity-check to module-setup.sh of 40network would be nice, to it refuses to work with arping:2. What happens with arping:2 is that dracut passes it unknown options, causing it to fail, which leads dracut to think the IP is duplicate, hammering a potential DHCP server over and over again.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea14c0f185578dcc8d2cf235009a481ab681748 commit 2ea14c0f185578dcc8d2cf235009a481ab681748 Author: Mike Gilbert <floppym@gentoo.org> Date: Sun Jul 2 19:11:06 2017 -0400 sys-kernel/dracut: depend on the right "arping" dracut expects arping from net-misc/iputils. Bug: https://bugs.gentoo.org/590566 Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77 sys-kernel/dracut/dracut-045.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)