summaryrefslogtreecommitdiffstats
path: root/support/misc
diff options
context:
space:
mode:
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>2017-02-26 16:08:49 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-26 21:15:13 +0100
commit410082e1d980668385ffd2993920785e0fffd2c1 (patch)
tree57bfd076d19adfb44e7b5e9f9caf76403e17d373 /support/misc
parentf12a146f817c8ef07a7d41a31a5336b5ef6a96e8 (diff)
downloadbuildroot-410082e1d980668385ffd2993920785e0fffd2c1.tar.gz
buildroot-410082e1d980668385ffd2993920785e0fffd2c1.zip
support/misc/Vagrantfile: reorganize provisioning
* Remove distribution upgrade cause it slows down the first boot and presents a bug when executed non interactively. * Reorganize provision scripts to be in privileged and non privileged sections * Add Ubuntu mirror automatic handling for apt packages sources Fixes bug #9581 Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/misc')
-rw-r--r--support/misc/Vagrantfile19
1 files changed, 10 insertions, 9 deletions
diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
index dc4c15d51e..89973ceeb0 100644
--- a/support/misc/Vagrantfile
+++ b/support/misc/Vagrantfile
@@ -41,19 +41,20 @@ Vagrant.configure('2') do |config|
end
end
- config.vm.provision 'shell', inline:
- "sudo dpkg --add-architecture i386
- sudo apt-get -q update
- sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
- sudo apt-get -q -y upgrade
- sudo apt-get -q -y install build-essential libncurses5-dev \
+ config.vm.provision 'shell', privileged: true, inline:
+ "sed -i 's|deb http://us.archive.ubuntu.com/ubuntu/|deb mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list
+ dpkg --add-architecture i386
+ apt-get -q update
+ apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
+ apt-get -q -y install build-essential libncurses5-dev \
git bzr cvs mercurial subversion libc6:i386 unzip bc
- sudo apt-get -q -y autoremove
- sudo apt-get -q -y clean
- sudo update-locale LC_ALL=C"
+ apt-get -q -y autoremove
+ apt-get -q -y clean
+ update-locale LC_ALL=C"
config.vm.provision 'shell', privileged: false, inline:
"echo 'Downloading and extracting buildroot #{RELEASE}'
wget -q -c http://buildroot.org/downloads/buildroot-#{RELEASE}.tar.gz
tar axf buildroot-#{RELEASE}.tar.gz"
+
end
OpenPOWER on IntegriCloud