I’m trying to build an Ubuntu Server x64 (20.04) image for this board, and I keep getting this error from mender-convert:
mount: /mender-convert/work/boot: wrong fs type, bad option, bad superblock on /dev/loop5, missing codepage or helper program, or other error.
Here’s what I’ve done:
1. Installed Ubuntu Server x64 20.04 on the board
2. Created an .img file from the disk like so:
sudo dd if=/dev/sdc of=ubuntu-server-image-from-HW-2020-05-07.img bs=1M conv=fdatasync
3. Run mender-convert
After several failed attempts of my own, I found the generic_x86-64_hdd_config
file in the master branch of mender-convert, and tried using that, modifying just the MENDER_STORAGE_TOTAL_SIZE_MB
to match my disk, and noting that it was indeed mounted at /dev/sda
on my target device (I booted the device to check).
Here is the output:
$ MENDER_ARTIFACT_NAME=artifact-v0.0.1 ./docker-mender-convert \
--disk-image input/ubuntu-server-image-from-HW-2020-05-07.img --config ./configs/krystofs-config-for-mender-convert
Running mender-convert --disk-image input/ubuntu-server-image-from-HW-2020-05-07.img --config ./configs/krystofs-config-for-mender-convert
Running mender-convert-extract: --disk-image input/ubuntu-server-image-from-HW-2020-05-07.img --config ./configs/krystofs-config-for-mender-convert
2020-05-09 00:11:12 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2020-05-09 00:11:12 [INFO] [mender-convert-extract] Using configuration file: ./configs/krystofs-config-for-mender-convert
2020-05-09 00:11:12 [INFO] [mender-convert-extract] Validating disk image
2020-05-09 00:11:12 [INFO] [mender-convert-extract] Disk parsed successfully
2020-05-09 00:11:12 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: gpt
2020-05-09 00:11:12 [INFO] [mender-convert-extract] PART 1: SIZE: 1M TYPE: 21686148-6449-6e6f-744e-656564454649
2020-05-09 00:11:12 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2020-05-09 00:11:12 [INFO] [mender-convert-extract] PART 2: SIZE: 119.2G TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2020-05-09 00:11:12 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning up...
Running mender-convert-modify: --disk-image input/ubuntu-server-image-from-HW-2020-05-07.img --config ./configs/krystofs-config-for-mender-convert
2020-05-09 00:18:25 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2020-05-09 00:18:25 [INFO] [mender-convert-modify] Using configuration file: ./configs/krystofs-config-for-mender-convert
mount: /mender-convert/work/boot: wrong fs type, bad option, bad superblock on /dev/loop5, missing codepage or helper program, or other error.
mender-convert-modify has finished. Cleaning up...
umount: work/boot: not mounted.
2020-05-09 00:18:25 [ERROR] [mender-convert] mender-convert failed
2020-05-09 00:18:25 [DEBUG] [mender-convert-extract] When running: (modules/disk.sh:61): run_and_log_cmd():
dd if=input/ubuntu-server-image-from-HW-2020-05-07.img of=work/part-2.fs skip=4096 bs=512 count=250062848 conv=sparse status=none
2020-05-09 00:18:25 [ERROR] [mender-convert] mender-convert exit code: 32
Any idea on what I need to do to successfully create the artifacts?
Thanks,
Krystof