Use pkg_mgr by default to install linux image and headers

Ubuntu/lucid image and headers are installed from assets/*

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
use /sbin/rescan-scsi-bus on ubuntu, and update older releases to match

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
OS image builds accept operating system version

* for ubuntu, used to construct the os spec file name
* ignored on centos
* available to stage config scripts

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Include version in stemcell filename

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Update debootstrap to 1.0.59 when building trusty stemcell

Debootstrap previous to 1.0.53 leaves udev daemon child process when
building trusty release
(https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/1182540)
This resulted in hanging IO process that was waiting for debootstrap and
its children to finish. This is not an issue when building lucid release.
Split ubuntu stemcell specs by version

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Follow symlinks when searching for binaries with allowed setuid in test

Ubuntu 14.04 sudoedit is a symbolic link

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Configure /etc/dhcp/dhclient.conf by default

Ubuntu 14.04 uses dhcp config located at /etc/dhcp/dhclient.conf.
Ubuntu 10.04 is using /etc/dhcp3/dhclient.conf. Check if dhcp3 config is
present and configure it instead. When restarting dhclient kill process
dhclient which is the same for Ubuntu 14.04 and Ubuntu 10.04.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Use operating system version in stemcell building vm Vagrantfile

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add operating system version to rake build and full_bosh_deploy tasks

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Traverse through symlink to chown /var/lock

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Do not use pgrep when checking the process

pgrep implementation is different on ubuntu 10.04 and 14.04
Use dhclient by default

Ubuntu 14.04 is using dhclient, not dhclient3. If dhclient3 is present
configure /etc/dhcp3/dhclient.conf. Otherwise, fall back to /etc/dhcp/dhclient.conf.
Restart networking with ifup/ifdown which restart dhclient.
/etc/init.d/networking does not restart dhclient.

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
Keep /etc/resolv.conf, only change its contents

The dhclient support scripts in Ubuntu 14.04 expect /etc/resolv.conf
to be a symlink. Change the stage commands to modify the contents of
the /etc/resolv.conf file while preserving the symlink

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Specify DNS as a list in dhclient config

Ubuntu 14.04 can only process a single prepend for domain-name-servers

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Restart network for Ubuntu 14.04

/etc/init.d/networking does not restart network in Ubuntu 14.04

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>