Hi,
I was following the documentation for creating a custom Debian OS artifact but while using mender convert, I am getting this error and I am not able to understand why it is happening.
I am using mender convert on macOS 13.4; Docker version 24.0.6; mender-convert tag 4.0.3
This is the error log:
% sudo MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert \
--disk-image input/golden-image-1.img \
--config configs/raspberrypi3_config \
--overlay input/rootfs_overlay_demo/
Password:
using log file at: /Users/mohakbhalla/Desktop/Repos/mender-convert/logs/convert.log.1700557477-49801
Running mender-convert --disk-image input/golden-image-1.img --config configs/raspberrypi3_config --overlay input/rootfs_overlay_demo/
Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/golden-image-1.img --config configs/raspberrypi3_config --overlay input/rootfs_overlay_demo/
2023-11-21 09:04:42 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2023-11-21 09:04:42 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2023-11-21 09:04:42 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi3_config
2023-11-21 09:04:42 [INFO] [mender-convert-extract] Validating disk image
2023-11-21 09:04:42 [INFO] [mender-convert-extract] Disk parsed successfully
2023-11-21 09:04:42 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2023-11-21 09:04:42 [INFO] [mender-convert-extract] PART 1: SIZE: 256M TYPE: 0xc
2023-11-21 09:04:42 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2023-11-21 09:05:00 [INFO] [mender-convert-extract] PART 2: SIZE: 3.4G TYPE: 0x83
2023-11-21 09:05:00 [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/raspberrypi3_config --overlay input/rootfs_overlay_demo/
2023-11-21 09:13:36 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-11-21 09:13:36 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-11-21 09:13:36 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi3_config
2023-11-21 09:13:37 [INFO] [mender-convert-modify] Installing Mender client and related files
2023-11-21 09:13:37 [INFO] [mender-convert-modify] Installing Mender client version latest
2023-11-21 09:13:45 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.5.1-1+debian+buster_armhf.deb
2023-11-21 09:13:45 [INFO] [mender-convert-modify] Successfully installed mender-client_3.5.1-1+debian+buster_armhf.deb into /mender-convert/work/rootfs/
2023-11-21 09:13:45 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Creating state scripts version file.
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1700557477-49801 for more info)
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2023-11-21 09:13:46 [INFO] [mender-convert-modify] Running hook: platform_modify
mender-convert-modify has finished. Cleaning up...
2023-11-21 09:13:48 [ERROR] [mender-convert] mender-convert failed
2023-11-21 09:13:48 [DEBUG] [mender-convert-modify] When running: (configs/raspberrypi_config:34): run_and_log_cmd():
sed -i 's[ ]root=[^ ]*/ root=${mender_kernel_root}/' work/rpi/cmdline.txt
sed: couldn't open temporary file work/rpi/sedYIktV8: Permission denied
2023-11-21 09:13:48 [ERROR] [mender-convert] mender-convert failed
2023-11-21 09:13:48 [ERROR] [mender-convert] mender-convert exit code: 4
Log file available at: /Users/mohakbhalla/Desktop/Repos/mender-convert/logs/convert.log.1700557477-49801
Any help is appreciated. Thanks!