SUSE-flavored systems uses STARTMODE and not ONBOOT
As described in /etc/sysconfig/network/ifcfg.template Static template was already using the right one, but the dhcp configuration seems to be copied from a Fedora/Redhat template. This fixes the issue that the interface does not come up after reboot.
This commit is contained in:
parent
4df01da457
commit
a21d5be705
|
@ -1,6 +1,6 @@
|
|||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
BOOTPROTO=dhcp
|
||||
ONBOOT=yes
|
||||
DEVICE=eth<%= options[:interface] %>
|
||||
BOOTPROTO='dhcp'
|
||||
STARTMODE='auto'
|
||||
DEVICE='eth<%= options[:interface] %>'
|
||||
#VAGRANT-END
|
||||
|
|
|
@ -12,9 +12,9 @@ describe "templates/guests/suse/network_dhcp" do
|
|||
expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
|
||||
#VAGRANT-BEGIN
|
||||
# The contents below are automatically generated by Vagrant. Do not modify.
|
||||
BOOTPROTO=dhcp
|
||||
ONBOOT=yes
|
||||
DEVICE=ethen0
|
||||
BOOTPROTO='dhcp'
|
||||
STARTMODE='auto'
|
||||
DEVICE='ethen0'
|
||||
#VAGRANT-END
|
||||
EOH
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue