Merge lp:~lamont/cloud-initramfs-tools/0.29ubuntu1.1 into lp:cloud-initramfs-tools

Proposed by LaMont Jones
Status: Merged
Merged at revision: 117
Proposed branch: lp:~lamont/cloud-initramfs-tools/0.29ubuntu1.1
Merge into: lp:cloud-initramfs-tools
Diff against target: 60 lines (+27/-5)
2 files modified
debian/changelog (+6/-0)
dyn-netconf/scripts/init-bottom/cloud-initramfs-dyn-netconf (+21/-5)
To merge this branch: bzr merge lp:~lamont/cloud-initramfs-tools/0.29ubuntu1.1
Reviewer Review Type Date Requested Status
cloud-initramfs-tools Pending
Review via email: mp+306980@code.launchpad.net

Commit message

Adds IPv6 support to the creation of /run/network/dynamic-interfaces.

Description of the change

Adds IPv6 support to the creation of /run/network/dynamic-interfaces.

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
=== modified file 'debian/changelog'
--- debian/changelog 2016-09-23 21:00:44 +0000
+++ debian/changelog 2016-09-28 03:54:56 +0000
@@ -1,3 +1,9 @@
1cloud-initramfs-tools (0.29ubuntu1.1) yakkety; urgency=medium
2
3 * Add IPV6 support to cloud-initramfs-dyn-netconf. (LP: #1621615)
4
5 -- LaMont Jones <lamont@canonical.com> Tue, 27 Sep 2016 16:07:48 -0600
6
1cloud-initramfs-tools (0.29ubuntu1) yakkety; urgency=medium7cloud-initramfs-tools (0.29ubuntu1) yakkety; urgency=medium
28
3 * overlayroot: support 'overlay' filesystem explicitly rather than9 * overlayroot: support 'overlay' filesystem explicitly rather than
410
=== modified file 'dyn-netconf/scripts/init-bottom/cloud-initramfs-dyn-netconf'
--- dyn-netconf/scripts/init-bottom/cloud-initramfs-dyn-netconf 2015-06-19 17:16:06 +0000
+++ dyn-netconf/scripts/init-bottom/cloud-initramfs-dyn-netconf 2016-09-28 03:54:56 +0000
@@ -77,6 +77,8 @@
7777
78 DEVICE=""; PROTO=""; IPV4ADDR=""; IPV4NETMASK=""; IPV4GATEWAY="";78 DEVICE=""; PROTO=""; IPV4ADDR=""; IPV4NETMASK=""; IPV4GATEWAY="";
79 IPV4DNS0=""; IPV4DNS1=""; DNSDOMAIN=""; DOMAINSEARCH=""; filename="";79 IPV4DNS0=""; IPV4DNS1=""; DNSDOMAIN=""; DOMAINSEARCH=""; filename="";
80 IPV4PROTO=""; IPV6PROTO=""; IPV6ADDR=""; IPV6NETMASK="";
81 IPV6GATEWAY=""; IPV6DNS0=""; IPV6DNS1=""; IPV6DOMAINSEARCH="";
80 . "$f"82 . "$f"
8183
82 if [ -z "$DEVICE" ]; then84 if [ -z "$DEVICE" ]; then
@@ -101,14 +103,28 @@
101 [ -n "$IPV4NETMASK" ] && printf "\t%s\n" "netmask $IPV4NETMASK"103 [ -n "$IPV4NETMASK" ] && printf "\t%s\n" "netmask $IPV4NETMASK"
102 [ -n "$IPV4GATEWAY" ] && printf "\t%s\n" "gateway $IPV4GATEWAY"104 [ -n "$IPV4GATEWAY" ] && printf "\t%s\n" "gateway $IPV4GATEWAY"
103 fi105 fi
106 if [ "$IPV6PROTO" = "dhcp" ]; then
107 echo "iface $DEVICE inet6 dhcp"
108 elif [ "$IPV6PROTO" = "static" ]; then
109 echo "iface $DEVICE inet6 static"
110 [ -n "$IPV6ADDR" ] && printf "\t%s\n" "address $IPV6ADDR"
111 [ -n "$IPV6NETMASK" ] && printf "\t%s\n" "netmask $IPV6NETMASK"
112 [ -n "$IPV6GATEWAY" ] && printf "\t%s\n" "gateway $IPV6GATEWAY"
113 fi
104 if [ -n "$IPV4DNS0" -a "$IPV4DNS0" != "0.0.0.0" ]; then114 if [ -n "$IPV4DNS0" -a "$IPV4DNS0" != "0.0.0.0" ]; then
105 nsline="dns-nameservers ${IPV4DNS0}"115 nsline="${IPV4DNS0}"
106 [ -n "$IPV4DNS1" -a "$IPV4DNS1" != "0.0.0.0" ] &&116 [ -n "$IPV4DNS1" -a "$IPV4DNS1" != "0.0.0.0" ] &&
107 nsline="${nsline} ${IPV4DNS1}"117 nsline="${nsline} ${IPV4DNS1}"
108 printf "\t%s\n" "$nsline"118 fi
109 fi119 if [ -n "$IPV6DNS0" -a "$IPV6DNS0" != "0.0.0.0" ]; then
110 [ -n "$DNSDOMAIN" -o -n "$DOMAINSEARCH" ] &&120 nsline="${IPV6DNS0}"
111 printf "\t%s\n" "dns-search ${DNSDOMAIN} ${DOMAINSEARCH}"121 [ -n "$IPV6DNS1" -a "$IPV6DNS1" != "0.0.0.0" ] &&
122 nsline="${nsline} ${IPV6DNS1}"
123 fi
124 [ -n "$nsline" ] && printf "\tdns-nameservers %s\n" "$nsline"
125 [ -n "$DNSDOMAIN" -o -n "$DOMAINSEARCH" -o -n $IPV6DOMAINSEARCH] &&
126 SEARCH=" ${DNSDOMAIN} ${DOMAINSEARCH} ${IPV6DOMAINSEARCH}" &&
127 printf "\tdns-search %s\n" "${SEARCH}"
112done >> "$tmpf"128done >> "$tmpf"
113129
114[ -d /run/network ] || mkdir /run/network130[ -d /run/network ] || mkdir /run/network

Subscribers

People subscribed via source and target branches