missing DOMAINSEARCH in initramfs output files if the DHCP server doesn't provide one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Xenial |
Triaged
|
High
|
Mathieu Trudel-Lapierre | ||
Zesty |
Fix Released
|
High
|
Unassigned | ||
klibc (Ubuntu) |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
Xenial |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Zesty |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre |
Bug Description
[Impact]
Systems booted off the network where the DHCP server provides a domain name but no search domains may wish to rely on the domain name as a search value (as is done in isc-dhcp in userland, outside the initramfs), to be able to use short names for resolving hosts.
[Test cases]
1) Boot a system with a remote root over the network
- Typically this requires adding ip=(some IP settings) or ip=dhcp on the kernel command-line, and is better done automatically.
One good setup for this is to use MaaS to configure the system; where it will require a remote root over iSCSI.
2) Break boot in the initramfs (adding 'break=bottom' or 'break=premount' to stop in the initramfs at its end, or just before it mounts filesystems)
3) Validate the contents of /etc/resolv.conf and /run/net-*.conf.
[Regression potential]
Potential regressions would include incorrectly resolving names, bad configuration of /etc/resolv.conf (invalid values for the fields, or missing fields), or even failure to mount the remote root in the cases where name resolution is required to find the remote server.
--
For networked systems, for instance booting with an iSCSI root, dhclient writes an output file in the form of /run/net-
It is common for DHCP servers to only provide a domain name value, and no search domains. In this case, isc-dhcp doesn't currently write DOMAINSEARCH, but people may wish to use short names to resolve things (such as in iSCSI server).
In the not-initramfs dhclient-script, when domain_search isn't provided but domain_name is, domain_name is written to the search string. If both are provided, domain_search is written. The initramfs enter hook should do the same.
Related branches
- Mathieu Trudel-Lapierre: Pending requested
-
Diff: 46 lines (+25/-2)2 files modifieddebian/changelog (+9/-0)
debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config (+16/-2)
Changed in isc-dhcp (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in isc-dhcp (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in isc-dhcp (Ubuntu Zesty): | |
importance: | Undecided → High |
Changed in isc-dhcp (Ubuntu Xenial): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in isc-dhcp (Ubuntu Zesty): | |
status: | New → Triaged |
description: | updated |
Changed in isc-dhcp (Ubuntu Xenial): | |
status: | In Progress → Invalid |
Changed in klibc (Ubuntu): | |
status: | New → Triaged |
Changed in klibc (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in klibc (Ubuntu Zesty): | |
status: | New → Triaged |
Changed in klibc (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in klibc (Ubuntu Xenial): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in klibc (Ubuntu Zesty): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in klibc (Ubuntu): | |
importance: | Undecided → Medium |
Changed in klibc (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in klibc (Ubuntu Zesty): | |
importance: | Undecided → Medium |
description: | updated |
This bug was fixed in the package isc-dhcp - 4.3.5-3ubuntu2
---------------
isc-dhcp (4.3.5-3ubuntu2) artful; urgency=medium
* debian/ initramfs- tools/lib/ etc/dhcp/ dhclient- enter-hooks. d/config: fix the dhclient- script. linux. (LP: #1713747)
logic for handling search domains to also write it to the output file when
only the domain name is provided by the DHCP server. Copied code from
debian/
-- Mathieu Trudel-Lapierre <email address hidden> Thu, 14 Sep 2017 15:41:06 -0700