owncloud-archive / pi-image

Scripts and configurations for Raspberry PI disk images
29 stars 8 forks source link

Proposal: base image to act as host for project container #2

Closed cmacq2 closed 8 years ago

cmacq2 commented 8 years ago

With the R.Pi2 kit we have a problem/barrier to collaboration in that:

I think that the following approach will permit us to solve issues one thru three in one go, and also permit each of us full flexibility w.r.t. to item 4:

cmacq2 commented 8 years ago

Overview

Status

I've done some experimental work towards getting this base image thing done, based on brickstrap. You can build a rootfs which should boot, but I have not yet been able to test this. (I still lack a R.Pi2 to play with). The image needs some refining and trimming around the edges because I basically grabbed an existing board config and did some obvious changes based on a cursory review, like disabling most all packages that it shipped with by default.

For example the image lacks a entropy seed file, ifupdown config.

Also, the automatic provisioning of the WD disks is still at TODO stage.

What is this brickstrap thing?

Brickstrap is a nice tool to automate the creation of rootfs images as a normal user without requiring elevated privileges during the actual build. It's the evolution of various thoughts and work done in the spirit expressed in this old blog post. You may find it worth a read to get an overview of the "how things should work" concept behind it, and also the "why things should be done this way" aspect.

Highlights/features

Where do I get this hot new stuff?

The work I did is currently divided into two parts:

  1. An experimental board configuration/setup for the RPi2 based off the upstream RPi2-with-Jessie to define the base image. This works lives the rpi2-owncloud-wd-minimal-base branch here. It's very much not done yet but can be built using brickstrap.
  2. Some simple, generically useful improvements to the frontend script (brickstrap.sh itself). This work has been upstreamed. More ideas for improvements are being discussed upstream as well.

Tangentially related, I sent a patch to QEMU mailing lists to update it with a bunch of missing syscalls on arm, aarch64 and mips. (Notably get_random()).

How do I use this?

Build & develop

To build & develop the image further:

Required tools/packages

Apart from brickstrap, the following tools are required:

oparoz commented 8 years ago

Added to the wiki https://github.com/owncloud/pi-image/wiki/Alternative-images