Skip to content

Instantly share code, notes, and snippets.

@sente
Created April 5, 2016 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sente/07b962b06cb4ce24199ee91cafc5ba4d to your computer and use it in GitHub Desktop.
Save sente/07b962b06cb4ce24199ee91cafc5ba4d to your computer and use it in GitHub Desktop.

Instruction to buildmachine:

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

Requirements

  • install virtualbox
    • confirmed working on v5.0.14 (check with vboxmanage --version)
  • install vagrant
    • confirmed working on v1.8.1 (check with vagrant --version)

Install

  • 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 run vagrant ssh -c onboot.sh)
  • 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

Use

  • 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 at temp

Hint:

  • the git repository on the Host is mounted at /vagrant in the Build Machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment