I am following the latest documentation “Building a Mender Debian Image” and it seems I’m running into problems every step of the way. I loaded a clean raspbian image on a raspberry pi, customized a few things, and followed this documentation to create a snapshot “golden image”, and now I’m trying to run it through mender-convert. Here’s a list of what I’ve worked through and where I am stuck now:
The “dd” command example has syntax that isn’t Mac friendly. Here is the command that I ended up having success with:
dd if=<DEVICE> of=golden-image-1.img bs=1m conv=sync
The git clone command for mender-convert seems to check out the code in a “detached head” state, and trying to run ./docker-build fails. Changing to 2.0.x or master allows the command to work.
Running the actual docker-mender-convert command seems to work at first, and takes several minutes to eventually fail saying :
mount: /mender-convert/work/rootfs: unknown filesystem type ‘hfsplus’.
mender-convert-modify has finished. Cleaning up…
umount: work/rootfs: not mounted.
2020-05-22 20:55:37 [ERROR] [mender-convert] mender-convert failed
2020-05-22 20:55:36 [DEBUG] [mender-convert-extract] When running: (./mender-convert-extract:110): run_and_log_cmd():
mkfs.fat 4.1 (2017-01-24)
2020-05-22 20:55:37 [ERROR] [mender-convert] mender-convert exit code: 32
I’m assuming the docker container doesn’t support hfsplus? Is there a simple switch that needs to be added to avoid this?