Skip to content

Building with Vagrant

Guy Sheffer edited this page Jul 16, 2018 · 2 revisions

There is a vagrant machine configuration to let build a CustomPiOS distro in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working.

Make sure you have a version of vagrant later than 1.9!

If you are using older versions of Ubuntu/Debian and not using apt-get from the download page.

To use it:

sudo apt-get install vagrant nfs-kernel-server virtualbox
sudo vagrant plugin install vagrant-nfs_guest
sudo vagrant plugin install vagrant-hostsupdater
sudo modprobe nfs
cd <distro folder>/src/vagrant
sudo vagrant up

After provisioning the machine, its also possible to run a nightly build which updates from devel using:

cd <distro folder>//src/vagrant
run_vagrant_build.sh

To build a variant on the machine simply run:

cd <distro folder>/src/vagrant
run_vagrant_build.sh [Variant]
Clone this wiki locally