Mender-convert: modules/disk.sh: line 61: $4: unbound variable, when using a /data partition on the golden image

Hello,

if I run mender convert on my image I get the error from the title. I used the raspbian minimal image and added a /data partition to it to be able to test my application with the /data path that will be used on the mender image. Other than that I mostly used the standard settings and used the raspberrypi3 conf from mender-convert.

What is the recommended approach to have a /data partition on the golden image before mender convert?

Any help would be greatly appreciated.

You could just have a /data directory rather than a data partition, the full mender image will mount the data partition onto it, regardless if there are any files in the directory already.