Merge lp:~nobuto/maas-deployer/fix-resolvconf into lp:~maas-deployers/maas-deployer/next

Proposed by Nobuto Murata
Status: Merged
Merged at revision: 22
Proposed branch: lp:~nobuto/maas-deployer/fix-resolvconf
Merge into: lp:~maas-deployers/maas-deployer/next
Diff against target: 16 lines (+1/-2)
1 file modified
maas_deployer/vmaas/templates/config-maas.sh (+1/-2)
To merge this branch: bzr merge lp:~nobuto/maas-deployer/fix-resolvconf
Reviewer Review Type Date Requested Status
MAAS Deployers Pending
Review via email: mp+268485@code.launchpad.net

Description of the change

properly clean up /etc/resolv.conf, LP: #1480263

/etc/resolv.conf will be left as empty until the next reboot, but it
uses local nameserver, i.e. MAAS DNS. From the manpage of
resolv.conf(5):
> If no nameserver entries are present, the default is to use the name
> server on the local machine.

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 'maas_deployer/vmaas/templates/config-maas.sh'
--- maas_deployer/vmaas/templates/config-maas.sh 2015-07-23 16:20:28 +0000
+++ maas_deployer/vmaas/templates/config-maas.sh 2015-08-19 14:05:30 +0000
@@ -14,11 +14,10 @@
14# Configure the dns nameservers14# Configure the dns nameservers
15echo "Configuring the DNS nameserver"15echo "Configuring the DNS nameserver"
16for dev in `ip link show | grep eth.*mtu | cut -d':' -f2`; do16for dev in `ip link show | grep eth.*mtu | cut -d':' -f2`; do
17 sudo resolvconf -d $dev17 sudo resolvconf -d ${dev}.inet
18done18done
1919
20sudo sed -i 's/dns-nameserver.*/dns-nameserver 127.0.0.1/g' /etc/network/interfaces20sudo sed -i 's/dns-nameserver.*/dns-nameserver 127.0.0.1/g' /etc/network/interfaces
21sudo resolvconf -u
2221
2322
24# Generate a MAAS API key for the admin user and start the importing of boot resources.23# Generate a MAAS API key for the admin user and start the importing of boot resources.

Subscribers

People subscribed via source and target branches

to all changes: