dhclient initramfs code writes invalid net-eth0.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Unassigned |
Bug Description
Since 18.10, Ubuntu switched to using dhclient instead of ipconfig in initramfs configure_
IPV4DNS0=1.2.3.1 1.2.3.2 1.2.3.3
This file is sourced by initramfs-
/init: /run/net-
I.e. values should be quoted, and 2 DNS entries should go in IPV4DNS0/IPV4DNS1, not multiple unquoted ones in IPV4DNS0.
Here is the erroneous file that dhclient-
DEVICE=enp0s3
PROTO=dhcp
IPV4PROTO=dhcp
IPV4ADDR=
IPV4NETMASK=
IPV4BROADCAST=
IPV4GATEWAY=
IPV4DNS0=
ROOTSERVER=
HOSTNAME=
DNSDOMAIN=
Here is the correct one that ipconfig produces:
DEVICE='enp0s3'
PROTO='dhcp'
IPV4ADDR=
IPV4BROADCAST=
IPV4NETMASK=
IPV4GATEWAY=
IPV4DNS0=
IPV4DNS1=
HOSTNAME=''
DNSDOMAIN=''
NISDOMAIN=''
ROOTSERVER=
ROOTPATH=''
filename=''
UPTIME='594'
DHCPLEASETIME=
DOMAINSEARCH=''
I.e. please either fix dhclient-
Related branches
- Steve Langasek (community): Abstain
- Canonical Server: Pending requested
- Michael Hudson-Doyle: Pending requested
-
Diff: 98 lines (+46/-37)1 file modifieddebian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config (+46/-37)
description: | updated |
Changed in isc-dhcp (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: id-5d6458d075c1a113cb9c2e57 |
no longer affects: | initramfs-tools (Ubuntu) |
no longer affects: | initramfs-tools (Ubuntu Eoan) |
Using Ubuntu live CDs, I verified that this did not happen in 18.04 and happens in both 18.10 and 19.04.