Skip to content

Commit

Permalink
Do not configure eth0 for Ubuntu in stemcell
Browse files Browse the repository at this point in the history
Agent is responsible for configuring all interfaces

Signed-off-by: Aaron Hurley <ahurley@pivotal.io>
  • Loading branch information
mariash authored and aaronshurley committed Apr 9, 2015
1 parent c1b5ae2 commit e481b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bosh-stemcell/spec/stemcells/ubuntu_trusty_spec.rb
Expand Up @@ -45,8 +45,8 @@
} do
describe file('/etc/network/interfaces') do
it { should be_file }
it { should contain 'auto eth0' }
it { should contain 'iface eth0 inet dhcp' }
it { should contain 'auto lo' }
it { should contain 'iface lo inet loopback' }
end
end

Expand Down
4 changes: 2 additions & 2 deletions stemcell_builder/stages/system_network/apply.sh
Expand Up @@ -10,8 +10,8 @@ rm -fr $chroot/etc/udev/rules.d/70-persistent-net.rules

if [ -e "$chroot/etc/network/interfaces" ]; then # ubuntu
cat >> $chroot/etc/network/interfaces <<EOS
auto eth0
iface eth0 inet dhcp
auto lo
iface lo inet loopback
EOS

elif [ -e "$chroot/etc/sysconfig/network" ]; then # centos
Expand Down

0 comments on commit e481b4a

Please sign in to comment.