peach-img-builder/README.md

61 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

This is a fork of the [vmdb2 script](https://salsa.debian.org/raspi-team/image-specs/-/tree/master) for building a [debian image for raspberry pi](https://wiki.debian.org/RaspberryPi),
which uses vmdb2 to build a disc image for PeachCloud
for the Raspberry pi with all configuration and peach microservices pre-installed.
2017-10-08 20:18:48 +00:00
2021-06-08 14:53:20 +00:00
This vmdb2 script creates a working Debian image,
adds apt.peachcloud.org as an apt source,
and then uses peach-config to install all PeachCloud microservices.
2017-10-08 20:18:48 +00:00
2021-02-03 11:28:42 +00:00
## Installing vmdb2
Run,
```shell
2021-02-03 11:19:40 +00:00
sudo apt install -y dosfstools qemu-user-static binfmt-support time kpartx
```
2021-02-03 11:19:40 +00:00
This script requires the latest version of vmdb2 which is not currently available via apt.
After installing the above, clone the vmdb2 repository and add it to your path.
```shell
git clone https://gitlab.com/larswirzenius/vmdb2.git
2021-02-15 09:40:22 +00:00
cd vmdb2; ln -s ${PWD}/vmdb2 /usr/local/bin/vmdb2
2021-02-03 11:19:40 +00:00
```
2021-02-03 11:28:42 +00:00
## To Build A New Image
Run,
```shell
make raspi_3.img
```
Theoretically, you could also use this script to build images for other pi versions,
by running the same command with `raspi_0w.img` or `raspi_2.img` or `raspi_3.img`
2021-02-03 11:28:42 +00:00
## Installing The Image
This image can then be flashed to an SD card using dd or etcher.
2021-02-03 11:28:42 +00:00
## Publishing The Image
2021-02-12 13:32:59 +00:00
To build a new peach image, and copy the output image and log to the releases directory, run:
```shell
./build.sh
```
2021-02-03 11:28:42 +00:00
PeachCloud images are versioned and published for release at http://releases.peachcloud.org/
2021-02-12 13:32:59 +00:00
2021-02-03 11:28:42 +00:00
## What's Different In This Fork?
2021-02-03 11:31:09 +00:00
the only file that is edited from the original is ```raspi_master.yaml```
## Image Size
Note that the alloted disc image size in the original image was 1500M.
This is not large enough to allow for the whole peach installation,
2021-02-15 09:42:02 +00:00
so this image is currently at 2000M.
2021-02-03 11:31:09 +00:00
On first boot, the image resizes to take up the whole size of the SD card it is installed on.