Skip to content

Commit

Permalink
example shell script to locally create customized disk image (#409)
Browse files Browse the repository at this point in the history
example shell script to locally create customized disk image

Signed-off-by: Ognian <[email protected]>

Signed-off-by: Ognian <[email protected]>
  • Loading branch information
Ognian authored Nov 11, 2022
1 parent 7a22217 commit 88d42c1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/src/pages/installation/raspberry.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,24 @@ $ sudo umount /tmp/persistent
```

You can push additional `cloud config` files. For a full reference check out the [docs](/reference/configuration) and also [configuration after-installation](/advanced/after-install)

## Customizing the disk image

The following shell script shows how to localy rebuild and customize the image with docker

```
IMAGE=quay.io/kairos/kairos-alpine-arm-rpi:v1.1.6-k3sv1.25.3-k3s1
# Pull the image locally
docker pull $IMAGE
mkdir -p build
docker run -v $PWD:/HERE -v /var/run/docker.sock:/var/run/docker.sock --privileged -i --rm --entrypoint=/build-arm-image.sh quay.io/kairos/osbuilder-tools:v0.4.0 \
--model rpi64 \
--state-partition-size 6200 \
--recovery-partition-size 4200 \
--size 15200 \
--images-size 2000 \
--local \
--config /HERE/cloud-config.yaml \
--docker-image $IMAGE /HERE/build/out.img
```

0 comments on commit 88d42c1

Please sign in to comment.