Allow hotplug on deb/ubuntu change host name [GH-1929]

This commit is contained in:
Mitchell Hashimoto 2013-07-17 05:03:14 -07:00
parent 104fac950b
commit 9d6a6cc9a1
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
BUG FIXES:
- Fix uninitialized constant error when configuring Arch Linux network. [GH-1734]
- Debian/Ubuntu change hostname works properly if eth0 is configured
with hot-plugging. [GH-1929]
## 1.2.4 (July 16, 2013)

View File

@ -9,7 +9,7 @@ module VagrantPlugins
comm.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
comm.sudo("hostname -F /etc/hostname")
comm.sudo("hostname --fqdn > /etc/mailname")
comm.sudo("ifdown -a; ifup -a")
comm.sudo("ifdown -a; ifup -a --allow=hotplug")
end
end
end

View File

@ -14,7 +14,7 @@ module VagrantPlugins
comm.sudo("service hostname start")
end
comm.sudo("hostname --fqdn > /etc/mailname")
comm.sudo("ifdown -a; ifup -a")
comm.sudo("ifdown -a; ifup -a --allow=hotplug")
end
end
end