[Bug 2024164] Re: Replace dhclient with dhcpcd
Launchpad Bug Tracker
2024164 at bugs.launchpad.net
Fri Aug 18 00:29:14 UTC 2023
This bug was fixed in the package initramfs-tools - 0.142ubuntu10
---------------
initramfs-tools (0.142ubuntu10) mantic; urgency=medium
* Fix resolving wrong multiarch libdir in dhcpcd hook (LP: #2031363)
initramfs-tools (0.142ubuntu9) mantic; urgency=medium
* Replace dhclient by dhcpcd (LP: #2024164)
* Merge consecutive manual_add_modules calls into one
-- Benjamin Drung <bdrung at ubuntu.com> Tue, 15 Aug 2023 20:41:22 +0200
** Changed in: initramfs-tools (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2024164
Title:
Replace dhclient with dhcpcd
Status in initramfs-tools package in Ubuntu:
Fix Released
Bug description:
ISC has announced the end of life for ISC DHCP as of the end of 2022.
Kea is the recommended successor of the DHCP server (isc-dhcp-server).
This bug report is about replacing the DHCP client (isc-dhcp-client).
Ubuntu uses NetworkManager on the desktop and systemd-networkd on the
server as default DHCP client. However isc-dhcp-client is still
installed as part of all Ubuntu systems, because it is the only client
implementation that integrates with initramfs-tools. isc-dhcp-client
is also used by cloud-init and as a command line tool to configure
transient DHCP on an interface.
There are following requirements for the replacement DHCP client:
1. The DHCP client must support DHCPv6.
2. The DHCP client in the initramfs should be small enough to not increase the size noticeable.
3. The DHCP client needs to be callable from the shell (for initramfs and cloud-init)
The Ubuntu desktop uses network-manager and the server/cloud images
uses systemd-networkd. So there is no need for changing the DHCP
client on booted systems, but the initramfs uses dhclient from isc-
dhcp-client.
ipconfig (from klibc-utils) does not support DHCPv6 (but there is work
in progress in
https://git.kernel.org/pub/scm/linux/kernel/git/bwh/klibc.git/?h=ipv6).
systemd-networkd, network-manager, and dhcpcanon pull in too many
packages/libraries for the initramfs use case (unless using a systemd-
based boot). For example, /lib/systemd/systemd-networkd is 1.6 MB big
and directly depends on 24 libraries.
systemd-networkd is designed to run as a service. It takes no
arguments when called. So it must run as daemon.
Therefore only dhcpcd and udhcpc remain as replacement (for the initramfs). From those two, I propose to use dhcpcd as replacement, because:
* It has many features (like classless static routes or DHCP over InfiniBand)
* It is actively developed (normally a few release per year)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2024164/+subscriptions
More information about the foundations-bugs
mailing list