summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Swartzlander <ben@swartzlander.org>2017-01-27 19:57:11 -0500
committerBen Swartzlander <ben@swartzlander.org>2017-01-27 19:59:07 -0500
commit3c8053515a88956015fa5bccebb124df1cdeb1a3 (patch)
treee4e6074801032f2ee4e033ae64c6faa58f0d46e5
parentaab91a6caa472f2b383f5bbdc368fb7fb18d563d (diff)
Install packages automatically on Ubuntu
For gate jobs, we need to automate the installing of dependencies, so check if we're on Ubuntu and handle that case automatically. Other distros can still use the script but need to manually take care of dependencies. Change-Id: Id2c6a815c018cdfe3b288c38c7033275f25d8f13
Notes
Notes (review): Code-Review+2: Mark Sturdevant <mark.sturdevant@ibm.com> Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Workflow+1: Goutham Pacha Ravi <gouthampravi@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Sat, 28 Jan 2017 01:40:22 +0000 Reviewed-on: https://review.openstack.org/426440 Project: openstack/manila-test-image Branch: refs/heads/master
-rwxr-xr-xinit-buildroot.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/init-buildroot.sh b/init-buildroot.sh
index 3590106..feabfcc 100755
--- a/init-buildroot.sh
+++ b/init-buildroot.sh
@@ -7,6 +7,11 @@
7# it under the terms of the GNU General Public License version 2 as 7# it under the terms of the GNU General Public License version 2 as
8# published by the Free Software Foundation. 8# published by the Free Software Foundation.
9 9
10if which lsb_release 2> /dev/null && [ $(lsb_release -i -s) = "Ubuntu" ]
11then
12 sudo apt-get -y install curl unzip bc python quilt parted qemu-utils \
13 build-essential gcc-multilib
14fi
10 15
11VERSION=2016.02 16VERSION=2016.02
12FILENAME=buildroot-${VERSION}.tar.bz2 17FILENAME=buildroot-${VERSION}.tar.bz2