-
Notifications
You must be signed in to change notification settings - Fork 161
Building
At the moment building is done from an Raspbian / Debian / Ubuntu / CustomPiOS distro. If you have another flavor of linux, or a version which is not supported, you can also install using the vagrant method or docker method, which generally solves lots of problems.
CustomPiOS distros can be built from Debian, Ubuntu, Raspbian, or even within a distro itself (for other systems use the Vagrant build option). Build requires about 2.5 GB of free space available, depending on what you install. You can build it by issuing the following commands:
sudo apt-get install gawk util-linux realpath qemu-user-static p7zip-full git
git clone https://github.com/guysoft/CustomPiOS.git
cd CustomPiOS/src
./make_custom_pi_os -g /path/to/new_distro
cd /path/to/new_distro/src
sudo modprobe loop
sudo bash -x ./build_dist
Users have reported buildign on OS X to work, but we can't support it directly. See this issue about this.
Building from windows is possible theoretically, but there is no success report yet. The main way to do it would be to use WSL in windows 10+ using vagrant. However there seems to be an issue in vagrant regarding this. Here is a guide on istalling WSL. Here is a guide on Vagrant with WSL.
CustomPiOS supports building variants, which are builds with changes
from the main release build. An example and other variants are available
in the folder src/variants/example
.
To build a variant use:
sudo bash -x ./build_dist [Variant]
The image created on a folder 'workspace' which is by default in the distro build files folder. It can be changed in the base module config variables.