Fix mitchellh/vagrant#3860 by making sure post-up command never returns an error code. Deleting the default route won't magically start working after waiting N seconds.
This commit is contained in:
parent
89beb695f2
commit
e7dce43af3
|
@ -3,7 +3,7 @@
|
||||||
auto eth<%= options[:interface] %>
|
auto eth<%= options[:interface] %>
|
||||||
iface eth<%= options[:interface] %> inet dhcp
|
iface eth<%= options[:interface] %> inet dhcp
|
||||||
<% if !options[:use_dhcp_assigned_default_route] %>
|
<% if !options[:use_dhcp_assigned_default_route] %>
|
||||||
post-up route del default dev $IFACE
|
post-up route del default dev $IFACE || true
|
||||||
<% else %>
|
<% else %>
|
||||||
# We need to disable eth0, see GH-2648
|
# We need to disable eth0, see GH-2648
|
||||||
post-up route del default dev eth0
|
post-up route del default dev eth0
|
||||||
|
|
Loading…
Reference in New Issue