Quill-OS / imgtool

Reproducible image builder for InkBox OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker way

On Arch Linux, install Docker and start it:

sudo pacman -S docker-buildx docker nbd
sudo systemctl enable --now docker

Create the Docker image:

docker build -t inkbox_imgtool .

Before launching imgtool, run this:

sudo rmmod nbd
sudo modprobe nbd max_part=16

Run it (yes, imgtool should be at /home/build/inkbox/imgtool/):

docker run -it --rm --privileged --cap-add=ALL -v /home/build/inkbox/:/home/build/inkbox/ -v /dev:/dev inkbox_imgtool

You propably want your own keys; run this:

openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -outform PEM -pubout

Then, run, for example:

./before_run.bash && ./clean.bash && KERNELDIR=/home/build/inkbox/kernel/ ./release.bash n306 /home/build/inkbox/imgtool/private.pem /home/build/inkbox/imgtool/public.pem root

Notes:

  • If /dev/nbd0p1 doesn't appear, it's bad

Links (that could help):

About

Reproducible image builder for InkBox OS


Languages

Language:Shell 96.0%Language:Dockerfile 4.0%