This will create a customized OS image for the Raspberry Pi based on Raspian Jessie Lite.
There are 3 "machines" you will be working with
- Host = Your computer
- Build Machine = Virtual Box machine
- Build = Simulated Raspberry Pi
- install virtualbox
- confirmed working on v5.0.14 (check with
vboxmanage --version
)
- confirmed working on v5.0.14 (check with
- install vagrant
- confirmed working on v1.8.1 (check with
vagrant --version
)
- confirmed working on v1.8.1 (check with
- get the code:
git clone git@github.com:pirate-sh/pirateship-buildmachine.git
- change directory:
cd pirateship-buildmachine
- run
./start.sh
to create and start the Build Machine called `pirateship-buildmachine- when done, you will be inside the Build Machine. (
exit
will bring you back to the Host. to get back into the Build Machine runvagrant ssh -c onboot.sh
)
- when done, you will be inside the Build Machine. (
- to create the Build image, from inside the Build Machine in the directory
/vagrant
run./pirateship-image-creator --chroot
- when done you are in the pirateship Build
- If you stay inside the Build you can manually modify the image
exit
will bring you back to the Build Machine- you will now find your Build image inside the Build Machine at
/vagrant/temp
or in the Host attemp
- the git repository on the Host is mounted at
/vagrant
in the Build Machine