boxes: Disable NFS client installation on Ubuntu 13.04 / 13.10 / 14.04
References GH-218
This commit is contained in:
parent
a8a2f55f21
commit
dd31e1f74a
2 changed files with 9 additions and 1 deletions
5
BOXES.md
5
BOXES.md
|
@ -19,6 +19,11 @@ PUPPET=1 CHEF=1 make precise
|
||||||
|
|
||||||
Will build a Ubuntu Precise x86_64 box with latest Puppet and Chef pre-installed, please refer to the scripts for more information.
|
Will build a Ubuntu Precise x86_64 box with latest Puppet and Chef pre-installed, please refer to the scripts for more information.
|
||||||
|
|
||||||
|
## Known issues
|
||||||
|
|
||||||
|
We can't get the NFS client to be installed on the containers used for building
|
||||||
|
Ubuntu 13.04 / 13.10 / 14.04 base boxes.
|
||||||
|
|
||||||
## "Anatomy" of a box
|
## "Anatomy" of a box
|
||||||
|
|
||||||
If you need to go deeper and build your scripts from scratch or if you are interested
|
If you need to go deeper and build your scripts from scratch or if you are interested
|
||||||
|
|
|
@ -14,10 +14,13 @@ log 'Sleeping for 5 seconds...'
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
# TODO: Support for appending to this list from outside
|
# TODO: Support for appending to this list from outside
|
||||||
PACKAGES=(vim curl wget man-db bash-completion python-software-properties ca-certificates sudo nfs-common)
|
PACKAGES=(vim curl wget man-db bash-completion python-software-properties ca-certificates sudo)
|
||||||
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
||||||
PACKAGES+=' software-properties-common'
|
PACKAGES+=' software-properties-common'
|
||||||
fi
|
fi
|
||||||
|
if [ $RELEASE != 'raring' ] && [ $RELEASE != 'saucy' ] && [ $RELEASE != 'trusty' ] ; then
|
||||||
|
PACKAGES+=' nfs-common'
|
||||||
|
fi
|
||||||
utils.lxc.attach apt-get update
|
utils.lxc.attach apt-get update
|
||||||
utils.lxc.attach apt-get install ${PACKAGES[*]} -y --force-yes
|
utils.lxc.attach apt-get install ${PACKAGES[*]} -y --force-yes
|
||||||
utils.lxc.attach apt-get upgrade -y --force-yes
|
utils.lxc.attach apt-get upgrade -y --force-yes
|
||||||
|
|
Loading…
Reference in a new issue