Hey everyone, I’m trying to convert my image (standard raspbian-based) to mender using mender-convert, but it hands shortly after starting. I believe it stems from the fact that mender-client is already installed in the golden image, but even with MENDER_CLIENT_INSTALL=n, the issue persists.
Full log:
Running mender-convert --disk-image input/golden-image-1.img --config configs/raspberrypi4_config --overlay rootfs_overlay_demo/
Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/golden-image-1.img --config configs/raspberrypi4_config --overlay rootfs_overlay_demo/
2022-04-05 12:57:42 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2022-04-05 12:57:42 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2022-04-05 12:57:42 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi4_config
2022-04-05 12:57:42 [INFO] [mender-convert-extract] Validating disk image
2022-04-05 12:57:42 [INFO] [mender-convert-extract] Disk parsed successfully
2022-04-05 12:57:42 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2022-04-05 12:57:42 [INFO] [mender-convert-extract] PART 1: SIZE: 256M TYPE: 0xc
2022-04-05 12:57:42 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2022-04-05 12:57:43 [INFO] [mender-convert-extract] PART 2: SIZE: 59.2G TYPE: 0x83
2022-04-05 12:57:43 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning up...
Running mender-convert-modify: --config ./work/override_compression_config --disk-image input/golden-image-1.img --config configs/raspberrypi4_config --overlay rootfs_overlay_demo/
2022-04-05 12:58:54 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2022-04-05 12:58:54 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2022-04-05 12:58:54 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi4_config
2022-04-05 12:59:00 [INFO] [mender-convert-modify] Installing Mender client and related files
2022-04-05 12:59:00 [INFO] [mender-convert-modify] Installing Mender client version latest
2022-04-05 12:59:03 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.2.1-1+debian+bullseye_armhf.deb
2022-04-05 12:59:03 [INFO] [mender-convert-modify] Successfully installed mender-client_3.2.1-1+debian+bullseye_armhf.deb into /mender-convert/work/rootfs/
2022-04-05 12:59:03 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
mender-convert-modify has finished. Cleaning up...
2022-04-05 12:59:03 [ERROR] [mender-convert] mender-convert failed
2022-04-05 12:59:03 [DEBUG] [mender-convert-modify] When running: (./mender-convert-modify:244): run_and_log_cmd():
sudo ln -sf /data/mender work/rootfs/var/lib
ln: work/rootfs/var/lib/mender: cannot overwrite directory
2022-04-05 12:59:03 [ERROR] [mender-convert] mender-convert failed
2022-04-05 12:59:03 [ERROR] [mender-convert] mender-convert exit code: 1
fdisk output:
Disk ./input/golden-image-1.img: 59.49 GiB, 63864569856 bytes, 124735488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaee0eda7
Device Boot Start End Sectors Size Id Type
./input/golden-image-1.img1 8192 532479 524288 256M c W95 FAT32 (LBA)
./input/golden-image-1.img2 532480 124735487 124203008 59.2G 83 Linux
I sadly couldn’t create the image using dd, as I’m using WSL and I can’t mount the sdcard without some serious effort. I used Win32 Disk Imager instead, selecting the Boot partition.
Thank you for any help!