Hello everyone. I am using Mender-Convert to convert my .img file created using
dd if=/dev/sda of=golden.img bs=1M conv=fdatasync
This is being saved to /mnt_tmp, which is mounted to /dev/sdb
Here are the file systems as well.
tmpfs 810580 1128 809452 1% /run
/dev/sda2 4046560 2525956 1294508 67% /
tmpfs 4052892 0 4052892 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
/dev/sdb 30787492 10488436 18709808 36% /mnt_tmp
/dev/sda4 4046560 24 3820440 1% /secondary
/dev/sda3 996780 132576 795392 15% /boot
/dev/sda5 1010124 24 941444 1% /data
tmpfs 810576 4 810572 1% /run/user/1000
I am using the below command to start the conversion. This is all using the ext4 format.
MENDER_ARTIFACT_NAME=release-1 ./mender-convert
–disk-image /mnt_tmp/golden.img
–config configs/generic_x86-64_hdd_config
–overlay input/rootfs_overlay_demo/
This command runs until it fails and outputs the following.
golden@goldenmenderimage:/mnt_tmp$ cd mender-convert/
golden@goldenmenderimage:/mnt_tmp/mender-convert$ MENDER_CONVERT_LOCATION=${PWD}
golden@goldenmenderimage:/mnt_tmp/mender-convert$ echo $MENDER_CONVERT_LOCATION/
/mnt_tmp/mender-convert/
golden@goldenmenderimage:/mnt_tmp/mender-convert$ sudo MENDER_ARTIFACT_NAME=release-1 ./mender-convert
–disk-image /mnt_tmp/golden.img
–config configs/generic_x86-64_hdd_config
–overlay input/rootfs_overlay_demo/
[sudo] password for golden:
Running mender-convert-extract: --config ./work/override_compression_config --disk-image /mnt_tmp/golden.img --config configs/generic_x86-64_hdd_config --overlay input/rootfs_overlay_demo/
2023-05-26 15:09:52 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2023-05-26 15:09:52 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2023-05-26 15:09:52 [INFO] [mender-convert-extract] Using configuration file: configs/generic_x86-64_hdd_config
2023-05-26 15:09:52 [INFO] [mender-convert-extract] Validating disk image
2023-05-26 15:09:52 [INFO] [mender-convert-extract] Disk parsed successfully
2023-05-26 15:09:52 [INFO] [mender-convert-extract] NUMBER OF PARTS: 5 TYPE: gpt
2023-05-26 15:09:52 [INFO] [mender-convert-extract] PART 1: SIZE: 1M TYPE: 21686148-6449-6e6f-744e-656564454649
2023-05-26 15:09:52 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2023-05-26 15:09:52 [INFO] [mender-convert-extract] PART 2: SIZE: 4G TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2023-05-26 15:09:52 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
2023-05-26 15:11:24 [INFO] [mender-convert-extract] PART 3: SIZE: 1G TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2023-05-26 15:11:24 [INFO] [mender-convert-extract] PART 3: extracting to work/part-3.fs
2023-05-26 15:11:34 [INFO] [mender-convert-extract] PART 4: SIZE: 4G TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2023-05-26 15:11:34 [INFO] [mender-convert-extract] PART 4: extracting to work/part-4.fs
2023-05-26 15:12:10 [INFO] [mender-convert-extract] PART 5: SIZE: 1021M TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2023-05-26 15:12:10 [INFO] [mender-convert-extract] PART 5: extracting to work/part-5.fs
mender-convert-extract has finished. Cleaning up…
Running mender-convert-modify: --config ./work/override_compression_config --disk-image /mnt_tmp/golden.img --config configs/generic_x86-64_hdd_config --overlay input/rootfs_overlay_demo/
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: configs/generic_x86-64_hdd_config
mount: /mnt_tmp/mender-convert/work/boot: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
mender-convert-modify has finished. Cleaning up…
umount: work/boot: not mounted.
2023-05-26 15:12:18 [ERROR] [mender-convert] mender-convert failed
2023-05-26 15:12:18 [DEBUG] [mender-convert-extract] When running: (modules/disk.sh:63): run_and_log_cmd():
dd if=/mnt_tmp/golden.img of=work/part-5.fs skip=18878464 bs=512 count=2091008 conv=sparse status=none
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-05-26 15:12:18 [INFO] [mender-convert-modify] Using configuration file: configs/generic_x86-64_hdd_config
2023-05-26 15:12:18 [ERROR] [mender-convert] mender-convert exit code: 32
What is causing this to fail? I will be happy to provide any additional details that help to solve this issue.