@ -7,7 +7,7 @@ and their version and name vary between Linux distributions.
To make using mender-convert easier, a reference setup using a Ubuntu 18.04 Docker container
is provided.
You need to [install Docker Engine CE](https://docs.docker.com/install) to use this environment.
You need to [install Docker Engine](https://docs.docker.com/install) to use this environment.
## Build the mender-convert container image
@ -18,7 +18,7 @@ copy this directory to your workstation and change the current directory to it.
Then run
```bash
./build.sh
./docker-build
```
This will create a container image you can use to run mender-convert.
@ -26,52 +26,44 @@ This will create a container image you can use to run mender-convert.
## Use the mender-convert container image
Create a directory `input` under the directory where you copied these files (`build.sh`, `run.sh`, etc.):
Create a directory `input` under the directory where you copied these files (`docker-build`, `docker-mender-convert`, etc.):
```bash
mkdir input
```
Put your raw disk image into `input`, e.g. `input/2018-10-09-raspbian-stretch.img`.
Then put a Mender client binary compiled for your device into `input/mender-1.6.0-arm-linux-gnueabihf-gcc`.
See [the Mender documentation on how to cross-compile the Mender client for your device](https://docs.mender.io/development/client-configuration/cross-compiling).
After you have built or pulled the mender-convert container image,
Note that the default Mender client is the latest stable and cross-compiled for generic ARM boards,
which should work well in most cases. If you would like to use a different Mender client,
place it in `inputs` and adjust the `--mender-client` argument.
Conversion will take 10-15 minutes, depending on your storage and resources available.
You can watch `output/build.log` for progress and diagnostics information.
@ -79,4 +71,4 @@ After it finishes, you can find your images in the `output` directory on your ho
## Known issues
* BeagleBone images might not convert properly using this docker envirnoment due to permission issues: `mount: /mender-convert/output/embedded/rootfs: WARNING: device write-protected, mounted read-only.`
* BeagleBone images might not convert properly using this docker envirnoment due to permission issues: `mount: /mender-convert/output/embedded/rootfs: WARNING: device write-protected, mounted read-only.`