Summary: | sys-kernel/dracut should RDEPEND on net-misc/dhcp[ipv6] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan Reimer <it> |
Component: | [OLD] Core system | Assignee: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, nikoli |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stefan Reimer
2012-10-03 23:07:23 UTC
Sorry, hit submit a bit early ;-) I added a suggested patch to the dracut ebuild in this bug report. Also it is available in my overlay. http://www.startux.de/gitweb/quarks.git/tree/5b2c767517662026fb689afe2729be80824d4ace:/sys-kernel/dracut Cheers, Stefan And this is by default? Even if one doesn't use IPv6 at all? Hi, problem is that in the dracut script the option "-4" or "-6" is used, but if dhcp got compiled without ipv6 it doesnt have -4 nor -6 so the dhcp call fails. I'd rather patch dracut to handle -4/-6 differently if it is easily possible. To think of this, it is net-misc/dhcp bug (therefore I'm CC'ing you, base-system - I hope you agree with me). dhclient should take '-4' argument either if ipv6 is enabled or not enabled. Stefan, could you do a little test for me? Please edit file /usr/lib/dracut/modules.d/40network/ifup.sh and change all occurrences of "do_dhcp -4" to "do_dhcp"; next rebuild the image and test if it works in both cases: net-misc/dhcp[ipv6] and net-misc/dhcp[-ipv6]. If it works, I can patch dracut. In other case net-misc/dhcp requires fix. Requiring net-misc/dhcp[ipv6] for ipv4 setup is wrong. Hi, I like the idea of adding a ipv6 USE flag to dracut and patch the dracut module in case it is not set. That's what you think of doing right ? Btw. I tried to dhcp-p2 from upstream but that version still removes the "-4" option if compiled without ipv6 support. After thinking about it, dhcp should be fixed to at least not bail out if presented with the "-4" option... Cheers, Stefan should be all set now in the tree; thanks for the report! Commit message: Always accept the -4 option even when USE=-ipv6 http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.4_p2-r1.ebuild?rev=1.1 http://sources.gentoo.org/net-misc/dhcp/files/dhcp-4.2.4-always-accept-4.patch?rev=1.1 should be all set now in the tree; thanks for the report! Commit message: Add fix from upstream for umount with user= options http://sources.gentoo.org/sys-apps/util-linux/files/util-linux-2.22-umount-user.patch?rev=1.1 http://sources.gentoo.org/sys-apps/util-linux/util-linux-2.22-r1.ebuild?rev=1.1 (In reply to comment #8) err, copy & paste in chrome screwed me up. ignore. Stefan, could you confirm that dhcp-4.2.4_p2-r1 solves the issue for you? If yes, I'll make dracut depend on >=4.2.4_p2-r1. |