Closed cmacq2 closed 8 years ago
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.
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.
The work I did is currently divided into two parts:
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()).
To build & develop the image further:
git clone git@github.com:cmacq2/brickstrap.git
git checkout -b temp-build-branch
git merge rpi2-owncloud-wd-minimal-base
mkdir -p ../tmp-builddir/out
./brickstrap.sh -f -b rpi2-wd-minimal -d ../tmp-builddir/out
rpi2-owncloud-wd-minimal-base
branch to develop the image further, merge into your temp branch for building/testing purposes, and rebuild.rpi2-wd-minimal
Apart from brickstrap, the following tools are required:
Added to the wiki https://github.com/owncloud/pi-image/wiki/Alternative-images
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:
machinectl pull-*
ormachinectl import commands
.