Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590566 - sys-kernel/dracut-044 network module depends arping from iputils
Summary: sys-kernel/dracut-044 network module depends arping from iputils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-05 15:05 UTC by Michael Stypa
Modified: 2017-07-02 23:14 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stypa 2016-08-05 15:05:43 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2016-08-05 15:13:08 UTC
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]"
Comment 2 Michael Stypa 2016-08-06 11:33:07 UTC
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.
Comment 3 Alexander Tsoy 2016-08-06 11:57:09 UTC
(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
Comment 4 EoD 2017-01-08 15:11:26 UTC
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.
Comment 5 Timo Rothenpieler 2017-06-19 13:39:00 UTC
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.
Comment 6 Mike Gilbert gentoo-dev 2017-07-02 23:14:32 UTC
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(-)