apt-get upgrade when building base boxes

This commit is contained in:
Fabio Rehm 2013-09-19 18:14:09 -03:00
parent 7efef2a489
commit e1f91efc3a

View file

@ -8,11 +8,12 @@ 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
# $ CHEF=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH # corresponding env var:
# $ PUPPET=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH # $ CHEF=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
# $ SALT=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH # $ PUPPET=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
# $ BABUSHKA=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH # $ SALT=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
# $ BABUSHKA=1 sudo -E ./build-ubuntu-box.sh UBUNTU_RELEASE BOX_ARCH
# TODO: * Add support for flushing cache and specifying a custom base Ubuntu lxc # TODO: * Add support for flushing cache and specifying a custom base Ubuntu lxc
# template instead of system's built in # template instead of system's built in
@ -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
################################################################################## ##################################################################################