Merge pull request #4308 from Voxer/fix/master/issue4307
guest/freebsd: fix interface device names in /etc/rc.conf
This commit is contained in:
commit
9e5a2d28c6
|
@ -27,7 +27,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
entry = TemplateRenderer.render("guests/freebsd/network_#{network[:type]}",
|
entry = TemplateRenderer.render("guests/freebsd/network_#{network[:type]}",
|
||||||
options: network)
|
options: network, ifname: ifname)
|
||||||
|
|
||||||
# Write the entry to a temporary location
|
# Write the entry to a temporary location
|
||||||
temp = Tempfile.new("vagrant")
|
temp = Tempfile.new("vagrant")
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#VAGRANT-BEGIN
|
#VAGRANT-BEGIN
|
||||||
ifconfig_em<%= options[:interface] %>="DHCP"
|
ifconfig_<%= ifname %>="DHCP"
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#VAGRANT-BEGIN
|
#VAGRANT-BEGIN
|
||||||
ifconfig_em<%= options[:interface] %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
ifconfig_<%= ifname %>="inet <%= options[:ip] %> netmask <%= options[:netmask] %>"
|
||||||
#VAGRANT-END
|
#VAGRANT-END
|
||||||
|
|
Loading…
Reference in New Issue