Merge ~cyphermox/ubuntu/+source/isc-dhcp:cyphermox/ubuntu/artful into ~cyphermox/ubuntu/+source/isc-dhcp:ubuntu/artful

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Merge reported by: Mathieu Trudel-Lapierre
Merged at revision: ac51d1d089b9399046dbb606f3934af006c05c08
Proposed branch: ~cyphermox/ubuntu/+source/isc-dhcp:cyphermox/ubuntu/artful
Merge into: ~cyphermox/ubuntu/+source/isc-dhcp:ubuntu/artful
Diff against target: 46 lines (+25/-2)
2 files modified
debian/changelog (+9/-0)
debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config (+16/-2)
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Pending
Review via email: mp+329823@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 863c575..16c096a 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+isc-dhcp (4.3.5-3ubuntu2) UNRELEASED; urgency=medium
7+
8+ * debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config: fix the
9+ logic for handling search domains to also write it to the output file when
10+ only the domain name is provided by the DHCP server. Copied code from
11+ debian/dhclient-script.linux. (LP: #1713747)
12+
13+ -- Mathieu Trudel-Lapierre <cyphermox@ubuntu.com> Tue, 29 Aug 2017 11:05:01 -0400
14+
15 isc-dhcp (4.3.5-3ubuntu1) zesty; urgency=low
16
17 * Merge from Debian unstable. Remaining changes:
18diff --git a/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config b/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
19index 0cc4401..aab6611 100755
20--- a/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
21+++ b/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
22@@ -17,8 +17,22 @@ BOUND)
23 if [ -n "$domain_name"]; then
24 echo "DNSDOMAIN=$new_domain_name" >> /run/net-$interface.conf
25 fi
26- if [ -n "$new_domain_search"]; then
27- echo "DOMAINSEARCH=$new_domain_search" >> /run/net-$interface.conf
28+ if [ -n "$new_domain_search" ]; then
29+ if [ -n "$new_domain_name" ]; then
30+ domain_in_search_list=""
31+ for domain in $new_domain_search; do
32+ if [ "$domain" = "${new_domain_name}" ] ||
33+ [ "$domain" = "${new_domain_name}." ]; then
34+ domain_in_search_list="Yes"
35+ fi
36+ done
37+ if [ -z "$domain_in_search_list" ]; then
38+ new_domain_search="$new_domain_name $new_domain_search"
39+ fi
40+ fi
41+ echo "DOMAINSEARCH=${new_domain_search}" >> /run/net-$interface.conf
42+ elif [ -n "$new_domain_name" ]; then
43+ echo "DOMAINSEARCH=${new_domain_name}" >> /run/net-$interface.conf
44 fi
45 ;;
46 BOUND6)

Subscribers

People subscribed via source and target branches

to all changes: