apt-get upgrade when building base boxes
This commit is contained in:
parent
7efef2a489
commit
e1f91efc3a
1 changed files with 10 additions and 6 deletions
|
@ -8,7 +8,8 @@ set -e
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# $ cd boxes && sudo ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
# $ cd boxes && sudo ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
||||||
#
|
#
|
||||||
# To enable Chef or any other configuration management tool pass '1' to it:
|
# To enable Chef or any other configuration management tool pass '1' to the
|
||||||
|
# corresponding env var:
|
||||||
# $ CHEF=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
# $ CHEF=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
||||||
# $ PUPPET=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
# $ PUPPET=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
||||||
# $ SALT=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
# $ SALT=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
|
||||||
|
@ -21,6 +22,8 @@ set -e
|
||||||
# * Ensure it is in sync with master
|
# * Ensure it is in sync with master
|
||||||
# * Stuff from locales (rcarmo and discourse stuff)
|
# * Stuff from locales (rcarmo and discourse stuff)
|
||||||
# * Clean up when finished
|
# * Clean up when finished
|
||||||
|
# * Add vagrant-lxc version to base box manifest and create an wiki page
|
||||||
|
# for describing it
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# 0 - Initial setup and sanity checks
|
# 0 - Initial setup and sanity checks
|
||||||
|
@ -82,10 +85,11 @@ sed -i -e \
|
||||||
|
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# 4 - Add some goodies
|
# 4 - Add some goodies and update packages
|
||||||
|
|
||||||
PACKAGES=(vim curl wget man-db bash-completion)
|
PACKAGES=(vim curl wget man-db bash-completion)
|
||||||
chroot ${ROOTFS} apt-get install ${PACKAGES[*]} -y --force-yes
|
chroot ${ROOTFS} apt-get install ${PACKAGES[*]} -y --force-yes
|
||||||
|
chroot ${ROOTFS} apt-get upgrade -y --force-yes
|
||||||
|
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
|
Loading…
Reference in a new issue