Mender-convert issue

I am new for the Mender-convert.
I am having Customized RaspberryPI4B Image of 31GB Size.
I want to convert it to mender-supported image for OTA OS Update.
I have followed the steps mentioned on the Online Mender Document.
I am facing FATAL error in last step:

convert the image

MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert
–disk-image input/golden-image-1.img
–config configs/raspberrypi3_config
–overlay input/rootfs_overlay_demo/

Log file:

2024-05-21 04:41:19 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:106): run_and_log_cmd():
sudo mkdir -p work/rootfs/data/mender-configure
2024-05-21 04:41:19 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:107): run_and_log_cmd():
sudo ln -sf /data/mender-configure work/rootfs/var/lib
2024-05-21 04:41:19 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:108): run_and_log_cmd():
sudo mkdir -p work/rootfs/data/mender-monitor
2024-05-21 04:41:19 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:109): run_and_log_cmd():
sudo ln -sf /data/mender-monitor work/rootfs/var/lib
2024-05-21 04:41:21 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:142): run_and_log_cmd():
wget --quiet -O work/mender-data-dir.service https://raw.githubusercontent.com/mendersoftware/meta-mender/ab9c1e65abf73cde1065e2a4c2005cfe61ee6e3d/meta-mender-core/recipes-mender/mender-client/files/mender-data-dir.service
2024-05-21 04:41:22 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:143): run_and_log_cmd():
sudo install -m 644 work/mender-data-dir.service work/rootfs/lib/systemd/system/mender-data-dir.service
2024-05-21 04:41:22 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:145): run_and_log_cmd():
sudo mkdir -p work/rootfs/lib/systemd/system/mender-client.service.wants
2024-05-21 04:41:22 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:147): run_and_log_cmd():
sudo ln -sf /lib/systemd/system/mender-data-dir.service work/rootfs/lib/systemd/system/mender-client.service.wants/mender-data-dir.service
2024-05-21 04:41:22 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:145): run_and_log_cmd():
sudo mkdir -p work/rootfs/lib/systemd/system/mender-updated.service.wants
2024-05-21 04:41:22 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:147): run_and_log_cmd():
sudo ln -sf /lib/systemd/system/mender-data-dir.service work/rootfs/lib/systemd/system/mender-updated.service.wants/mender-data-dir.service
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:150): run_and_log_cmd():
sudo mkdir -p work/rootfs/data/mender
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:151): run_and_log_cmd():
sudo mkdir -p work/rootfs/var/lib
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:152): run_and_log_cmd():
sudo ln -sf /data/mender work/rootfs/var/lib
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:164): run_and_log_cmd():
sudo cp work/mender.conf.data work/rootfs/data/mender/mender.conf
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:165): run_and_log_cmd():
sudo chmod 600 work/rootfs/data/mender/mender.conf
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:176): run_and_log_cmd():
echo ‘device_type=raspberrypi4’ > work/device_type
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:177): run_and_log_cmd():
sudo install -m 0444 work/device_type work/rootfs/data/mender/
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Creating state scripts version file.
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:184): run_and_log_cmd():
sudo mkdir -p work/rootfs/etc/mender/scripts/
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:185): run_and_log_cmd():
echo -n 3 | sudo tee work/rootfs/etc/mender/scripts/version
3
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1716266014-14552 for more info)
2024-05-21 04:41:23 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:195): run_and_log_cmd():
sudo mkdir -p work/rootfs//uboot
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Installing Mender client and related files
2024-05-21 04:41:23 [INFO] [mender-convert-modify] Installing Mender client version latest
2024-05-21 04:41:24 [DEBUG] [mender-convert-modify] Running: (modules/deb.sh:43): run_and_log_cmd():
wget -Nq https://downloads.mender.io/repos/debian/dists/debian/bullseye/stable/main/binary-armhf/Packages -P /tmp
2024-05-21 04:41:26 [DEBUG] [mender-convert-modify] Running: (modules/deb.sh:52): run_and_log_cmd():

wget -Nq https://downloads.mender.io/repos/debian/pool/main/m/mender-client/mender-client_3.5.2-1%2Bdebian%2Bbullseye_armhf.deb -P work/deb-packages

2024-05-21 04:41:26 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.5.2-1+debian+bullseye_armhf.deb
2024-05-21 04:41:27 [DEBUG] [mender-convert-modify] Running: (modules/chroot.sh:54): run_and_log_cmd():

sudo mount /dev /mender-convert/work/rootfs//dev -o bind,ro

2024-05-21 04:41:27 [DEBUG] [mender-convert-modify] Running: (modules/chroot.sh:56): run_and_log_cmd():

sudo mount /dev/pts /mender-convert/work/rootfs//dev/pts -o bind,ro

2024-05-21 04:41:27 [DEBUG] [mender-convert-modify] Running: (modules/chroot.sh:57): run_and_log_cmd():

sudo mount /proc /mender-convert/work/rootfs//proc -o bind,ro

2024-05-21 04:41:27 [DEBUG] [mender-convert-modify] Running: (modules/chroot.sh:58): run_and_log_cmd():

sudo mount /sys /mender-convert/work/rootfs//sys -o bind,ro

2024-05-21 04:41:54 [DEBUG] [mender-convert-modify] Running: (modules/chroot.sh:116): run_and_log_cmd_noexit():

sudo chroot /mender-convert/work/rootfs/ /tmp/qemu-arm-static /usr/bin/env env         DEBIAN_FRONTEND=noninteractive         DEVICE_TYPE=raspberrypi4         dpkg --install /tmp/mender-client_3.5.2-1+debian+bullseye_armhf.deb
Selecting previously unselected package mender-client.

(Reading database … 65648 files and directories currently installed.)
Preparing to unpack …/mender-client_3.5.2-1+debian+bullseye_armhf.deb …
Unpacking mender-client (1:3.5.2-1+debian+bullseye) …
Setting up mender-client (1:3.5.2-1+debian+bullseye) …
time=“2024-05-21T06:41:47+02:00” level=warning msg=“Could not connect to syslog daemon: Unix syslog delivery error. (use --no-syslog to disable completely)”
Created symlink /etc/systemd/system/multi-user.target.wants/mender-client.service → /lib/systemd/system/mender-client.service.
Processing triggers for dbus (1.12.24-0+deb11u1) …

2024-05-21 04:41:54 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2024-05-21 04:41:54 [INFO] [mender-convert-modify] Running hook: platform_modify
2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:19): run_and_log_cmd():

wget -q https://downloads.mender.io/mender-convert/uboot/raspberrypi/raspberrypi4-2020.01.tar.gz -P work/rpi/binaries

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:20): run_and_log_cmd():

tar xzvf work/rpi/binaries/raspberrypi4-2020.01.tar.gz -C work/rpi/binaries
./boot.scr

./fw_env.config
./fw_printenv
./u-boot.bin
./uboot-git-log.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:31): run_and_log_cmd():

cp work/boot/cmdline.txt work/rpi/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:34): run_and_log_cmd():

sed -i 's/[ ]root=[^ ]*/ root=${mender_kernel_root}/' work/rpi/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:44): run_and_log_cmd():

sed -i 's| init=/usr/lib/raspi-config/init_resize\.sh||' work/rpi/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:45): run_and_log_cmd():

sed -i 's| sdhci\.debug_quirks2=4||' work/rpi/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:47): run_and_log_cmd():

sed -i 's/ quiet//g' work/rpi/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:51): run_and_log_cmd():

sudo cp work/rpi/cmdline.txt work/boot/

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:59): run_and_log_cmd():

sudo ln -sf /dev/null work/rootfs/etc/systemd/system/udisks2.service

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:78): run_and_log_cmd():

sudo cp work/boot/kernel7l.img work/rootfs/boot/zImage

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:82): run_and_log_cmd():

sudo mkdir -p work/rootfs/uboot

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:83): run_and_log_cmd():

sudo cp work/rpi/binaries/u-boot.bin work/boot/kernel7l.img

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:84): run_and_log_cmd():

sudo cp work/rpi/binaries/boot.scr work/boot

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:85): run_and_log_cmd():

sudo cp work/rpi/binaries/fw_env.config work/rootfs/etc/

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:86): run_and_log_cmd():

sudo cp work/rpi/binaries/uboot-git-log.txt work/boot

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/COPYING.linux work/rootfs/boot/COPYING.linux

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/LICENCE.broadcom work/rootfs/boot/LICENCE.broadcom

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/System work/rootfs/boot/System

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/Volume work/rootfs/boot/Volume

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/Information work/rootfs/boot/Information

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-b-plus.dtb work/rootfs/boot/bcm2708-rpi-b-plus.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-b-rev1.dtb work/rootfs/boot/bcm2708-rpi-b-rev1.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-b.dtb work/rootfs/boot/bcm2708-rpi-b.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-cm.dtb work/rootfs/boot/bcm2708-rpi-cm.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-zero-w.dtb work/rootfs/boot/bcm2708-rpi-zero-w.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2708-rpi-zero.dtb work/rootfs/boot/bcm2708-rpi-zero.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2709-rpi-2-b.dtb work/rootfs/boot/bcm2709-rpi-2-b.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2709-rpi-cm2.dtb work/rootfs/boot/bcm2709-rpi-cm2.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-2-b.dtb work/rootfs/boot/bcm2710-rpi-2-b.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-3-b-plus.dtb work/rootfs/boot/bcm2710-rpi-3-b-plus.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-3-b.dtb work/rootfs/boot/bcm2710-rpi-3-b.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-cm3.dtb work/rootfs/boot/bcm2710-rpi-cm3.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-zero-2-w.dtb work/rootfs/boot/bcm2710-rpi-zero-2-w.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2710-rpi-zero-2.dtb work/rootfs/boot/bcm2710-rpi-zero-2.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2711-rpi-4-b.dtb work/rootfs/boot/bcm2711-rpi-4-b.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2711-rpi-400.dtb work/rootfs/boot/bcm2711-rpi-400.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2711-rpi-cm4-io.dtb work/rootfs/boot/bcm2711-rpi-cm4-io.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2711-rpi-cm4.dtb work/rootfs/boot/bcm2711-rpi-cm4.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bcm2711-rpi-cm4s.dtb work/rootfs/boot/bcm2711-rpi-cm4s.dtb

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/boot.scr work/rootfs/boot/boot.scr

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/bootcode.bin work/rootfs/boot/bootcode.bin

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/cmdline.txt work/rootfs/boot/cmdline.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/config.txt work/rootfs/boot/config.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup.dat work/rootfs/boot/fixup.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup4.dat work/rootfs/boot/fixup4.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup4cd.dat work/rootfs/boot/fixup4cd.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup4db.dat work/rootfs/boot/fixup4db.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup4x.dat work/rootfs/boot/fixup4x.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup_cd.dat work/rootfs/boot/fixup_cd.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup_db.dat work/rootfs/boot/fixup_db.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/fixup_x.dat work/rootfs/boot/fixup_x.dat

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/issue.txt work/rootfs/boot/issue.txt

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/kernel.img work/rootfs/boot/kernel.img

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/kernel7.img work/rootfs/boot/kernel7.img

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/kernel7l.img work/rootfs/boot/kernel7l.img

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/kernel8.img work/rootfs/boot/kernel8.img

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/overlays work/rootfs/boot/overlays

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start.elf work/rootfs/boot/start.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start4.elf work/rootfs/boot/start4.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start4cd.elf work/rootfs/boot/start4cd.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start4db.elf work/rootfs/boot/start4db.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start4x.elf work/rootfs/boot/start4x.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start_cd.elf work/rootfs/boot/start_cd.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start_db.elf work/rootfs/boot/start_db.elf

2024-05-21 04:41:55 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/start_x.elf work/rootfs/boot/start_x.elf

2024-05-21 04:41:56 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:92): run_and_log_cmd():

sudo ln -fs /uboot/uboot-git-log.txt work/rootfs/boot/uboot-git-log.txt

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/lib/systemd/system/sshswitch.service

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/lib/systemd/system/sshswitch.service
— work/rootfs/lib/systemd/system/sshswitch.service.bak 2023-05-10 06:00:36.000000000 +0000
+++ work/rootfs/lib/systemd/system/sshswitch.service 2024-05-21 04:42:14.333828314 +0000
@@ -1,11 +1,11 @@
[Unit]
-Description=Turn on SSH if /boot/ssh is present
-ConditionPathExistsGlob=/boot/ssh{,.txt}
+Description=Turn on SSH if /uboot/ssh is present
+ConditionPathExistsGlob=/uboot/ssh{,.txt}
After=regenerate_ssh_host_keys.service boot.mount

[Service]
Type=oneshot
-ExecStart=/bin/sh -c “systemctl enable --now ssh && rm -f /boot/ssh /boot/ssh.txt”
+ExecStart=/bin/sh -c “systemctl enable --now ssh && rm -f /uboot/ssh /uboot/ssh.txt”

[Install]
WantedBy=multi-user.target
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/lib/systemd/system/apply_noobs_os_config.service

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/lib/systemd/system/apply_noobs_os_config.service
— work/rootfs/lib/systemd/system/apply_noobs_os_config.service.bak 2017-07-17 11:46:17.000000000 +0000
+++ work/rootfs/lib/systemd/system/apply_noobs_os_config.service 2024-05-21 04:42:14.353828564 +0000
@@ -1,6 +1,6 @@
[Unit]
Description=Apply NOOBS config
-ConditionPathExists=/boot/os_config.json
+ConditionPathExists=/uboot/os_config.json
Before=display-manager.service getty.target autologin@tty1.service

[Service]
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/lib/systemd/system/raspberrypi-net-mods.service

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/lib/systemd/system/raspberrypi-net-mods.service
— work/rootfs/lib/systemd/system/raspberrypi-net-mods.service.bak 2022-08-04 09:40:53.000000000 +0000
+++ work/rootfs/lib/systemd/system/raspberrypi-net-mods.service 2024-05-21 04:42:14.373828815 +0000
@@ -1,6 +1,6 @@
[Unit]
Description=Copy user wpa_supplicant.conf
-ConditionPathExists=/boot/wpa_supplicant.conf
+ConditionPathExists=/uboot/wpa_supplicant.conf
Before=dhcpcd.service NetworkManager.service
After=systemd-rfkill.service

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/usr/lib/raspberrypi-sys-mods/firstboot

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/usr/lib/raspberrypi-sys-mods/firstboot
— work/rootfs/usr/lib/raspberrypi-sys-mods/firstboot.bak 2023-05-10 06:00:36.000000000 +0000
+++ work/rootfs/usr/lib/raspberrypi-sys-mods/firstboot 2024-05-21 04:42:14.393829066 +0000
@@ -1,7 +1,7 @@
#!/bin/bash

reboot_pi () {

  • umount /boot
  • umount /uboot
    mount / -o remount,ro
    sync
    if [ “$NOOBS” = “1” ]; then
    @@ -32,7 +32,7 @@
    ROOT_DEV=“/dev/${ROOT_DEV_NAME}”
    ROOT_PART_NUM=$(cat “/sys/block/${ROOT_DEV_NAME}/${ROOT_PART_NAME}/partition”)
  • BOOT_PART_DEV=$(findmnt /boot -o source -n)
  • BOOT_PART_DEV=$(findmnt /uboot -o source -n)
    BOOT_PART_NAME=$(echo “$BOOT_PART_DEV” | cut -d “/” -f 3)
    BOOT_DEV_NAME=$(echo /sys/block/*/“${BOOT_PART_NAME}” | cut -d “/” -f 4)
    BOOT_PART_NUM=$(cat “/sys/block/${BOOT_DEV_NAME}/${BOOT_PART_NAME}/partition”)
    @@ -73,7 +73,7 @@
    EOF
    if [ “$?” -eq 0 ]; then
    sed -i “s/${OLD_DISKID}/${DISKID}/g” /etc/fstab
  • sed -i “s/${OLD_DISKID}/${DISKID}/” /boot/cmdline.txt
  • sed -i “s/${OLD_DISKID}/${DISKID}/” /uboot/cmdline.txt
    sync
    fi

@@ -82,12 +82,12 @@
}

fix_wpa() {

  • if [ -e /boot/firstrun.sh ] \
  • && ! grep -q 'imager_custom set_wlan' /boot/firstrun.sh \
    
  • && grep -q wpa_supplicant.conf /boot/firstrun.sh; then
    
  • if [ -e /uboot/firstrun.sh ] \
  • && ! grep -q 'imager_custom set_wlan' /uboot/firstrun.sh \
    
  • && grep -q wpa_supplicant.conf /uboot/firstrun.sh; then
    
    mount -o remount,rw “$ROOT_PART_DEV”
    modprobe rfkill
  • REGDOMAIN=$(sed -n ‘s/^\s*country=(…)$/\1/p’ /boot/firstrun.sh)
  • REGDOMAIN=$(sed -n ‘s/^\s*country=(…)$/\1/p’ /uboot/firstrun.sh)
    [ -n “$REGDOMAIN” ] && raspi-config nonint do_wifi_country “$REGDOMAIN”
    if systemctl -q is-enabled NetworkManager; then
    systemctl disable NetworkManager
    @@ -184,7 +184,7 @@
    apply_custom () {
    CONFIG_FILE=“$1”
    mount -o remount,rw /
  • mount -o remount,rw /boot
  • mount -o remount,rw /uboot
    if ! python3 -c “import toml” 2> /dev/null; then
    FAIL_REASON=“custom.toml provided, but python3-toml is not installed
    $FAIL_REASON”
    else
    @@ -200,7 +200,7 @@
    set +o pipefail
    fi
    rm -f “$CONFIG_FILE”
  • mount -o remount,ro /boot
  • mount -o remount,ro /uboot
    mount -o remount,ro /
    }

@@ -217,10 +217,10 @@
whiptail --infobox “Generating SSH keys…” 20 60
regenerate_ssh_host_keys

  • if [ -f “/boot/custom.toml” ]; then
  • if [ -f “/uboot/custom.toml” ]; then
    MSG="Applying customisations from custom.toml…
    "
    whiptail --infobox “$MSG” 20 60
  • apply_custom “/boot/custom.toml”
  • apply_custom “/uboot/custom.toml”
    fi

whiptail --infobox “Fix PARTUUID…” 20 60
@@ -234,16 +234,16 @@
mount -t tmpfs tmp /run
mkdir -p /run/systemd

-mount /boot
+mount /uboot
mount / -o remount,ro

-sed -i ‘s| init=/usr/lib/raspberrypi-sys-mods/firstboot||’ /boot/cmdline.txt
-sed -i ‘s| sdhci.debug_quirks2=4||’ /boot/cmdline.txt
+sed -i ‘s| init=/usr/lib/raspberrypi-sys-mods/firstboot||’ /uboot/cmdline.txt
+sed -i ‘s| sdhci.debug_quirks2=4||’ /uboot/cmdline.txt

-if ! grep -q splash /boot/cmdline.txt; then

  • sed -i “s/ quiet//g” /boot/cmdline.txt
    +if ! grep -q splash /uboot/cmdline.txt; then
  • sed -i “s/ quiet//g” /uboot/cmdline.txt
    fi
    -mount /boot -o remount,ro
    +mount /uboot -o remount,ro
    sync

main
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/usr/lib/userconf-pi/userconf-service

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/usr/lib/userconf-pi/userconf-service
— work/rootfs/usr/lib/userconf-pi/userconf-service.bak 2022-06-18 20:23:53.000000000 +0000
+++ work/rootfs/usr/lib/userconf-pi/userconf-service 2024-05-21 04:42:14.409829266 +0000
@@ -34,7 +34,7 @@
INTERACTIVE=False
fi

-for BOOT_CONF_FILE in /boot/userconf /boot/userconf.txt; do
+for BOOT_CONF_FILE in /uboot/userconf /uboot/userconf.txt; do
if [ ! -f “$BOOT_CONF_FILE” ]; then
continue
fi
@@ -45,7 +45,7 @@
INTERACTIVE=False
else
echo “$MSG” | tee -a “$BOOT_CONF_FILE” >&2

  •    mv "$BOOT_CONF_FILE" "/boot/failed_$(basename "$BOOT_CONF_FILE")"
    
  •    mv "$BOOT_CONF_FILE" "/uboot/failed_$(basename "$BOOT_CONF_FILE")"
       sync
    
    fi
    break
    @@ -57,7 +57,7 @@
    if [ -t 0 ]; then
    chvt “$VT”
    fi
  • for FAILED_BOOT_CONF_FILE in /boot/failed_userconf /boot/failed_userconf.txt; do
  • for FAILED_BOOT_CONF_FILE in /uboot/failed_userconf /uboot/failed_userconf.txt; do
    if [ -f “$FAILED_BOOT_CONF_FILE” ]; then
    MSG=“$(tail -n+2 “$FAILED_BOOT_CONF_FILE”)”
    whiptail --msgbox “$FAILED_BOOT_CONF_FILE detected:
    $MSG” 20 60
    @@ -105,4 +105,4 @@
    rm “$BOOT_CONF_FILE”
    fi

-rm -f /boot/failed_userconf /boot/failed_userconf.txt
+rm -f /uboot/failed_userconf /uboot/failed_userconf.txt
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:121): run_and_log_cmd():

sed -i.bak 's|/boot|/uboot|g' work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Modified file work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy
— work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy.bak 2022-08-08 10:20:23.000000000 +0000
+++ work/rootfs/usr/lib/raspberrypi-net-mods/wpa_copy 2024-05-21 04:42:14.429829517 +0000
@@ -1,6 +1,6 @@
#!/bin/sh

-mv /boot/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf
+mv /uboot/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf
chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf
REGDOMAIN=$(sed -n ‘s/^\s*country=(…)$/\1/p’ /etc/wpa_supplicant/wpa_supplicant.conf)
[ -n “$REGDOMAIN” ] && raspi-config nonint do_wifi_country “$REGDOMAIN”
2024-05-21 04:42:14 [INFO] [mender-convert-modify] Certain service files have been changed to align with our /uboot boot partition mount point. See convert.log for more information
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:127): run_and_log_cmd():

sudo install -m 755 work/rpi/binaries/fw_printenv work/rootfs/sbin/fw_printenv

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:128): run_and_log_cmd():

sudo ln -fs /sbin/fw_printenv work/rootfs/sbin/fw_setenv

2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (configs/raspberrypi_config:134): run_and_log_cmd():

sudo rm -f work/rootfs/etc/init.d/resize2fs_once

2024-05-21 04:42:14 [INFO] [mender-convert-modify] Enabling UART in U-Boot configuration
2024-05-21 04:42:14 [INFO] [mender-convert-modify] Performing user/local specific modifications (if any)
2024-05-21 04:42:14 [INFO] [mender-convert-modify] Running hook: user_local_modify
2024-05-21 04:42:14 [INFO] [mender-convert-modify] Applying rootfs overlay: input/rootfs_overlay_demo/
2024-05-21 04:42:14 [DEBUG] [mender-convert-modify] Running: (./mender-convert-modify:323): run_and_log_cmd():

sudo rsync --archive --keep-dirlinks --verbose input/rootfs_overlay_demo// work/rootfs/
sending incremental file list

./
.gitkeep

sent 109 bytes received 38 bytes 294.00 bytes/sec
total size is 0 speedup is 0.00

2024-05-21 04:42:14 [INFO] [mender-convert-modify] Performing overlay specific modifications (if any)
2024-05-21 04:42:14 [INFO] [mender-convert-modify] Running hook: overlay_modify
2024-05-21 04:42:14 [INFO] [mender-convert-package] Using configuration file: configs/mender_convert_config
2024-05-21 04:42:14 [INFO] [mender-convert-package] Using configuration file: ./work/override_compression_config
2024-05-21 04:42:14 [INFO] [mender-convert-package] Using configuration file: configs/raspberrypi4_config
2024-05-21 04:42:15 [e[1;33mWARNe[0m] [mender-convert-package] The allocated boot part size 40 MiB is too small.
2024-05-21 04:42:15 [e[1;33mWARNe[0m] [mender-convert-package] The actual boot part size is 256 MiB
2024-05-21 04:42:15 [e[1;33mWARNe[0m] [mender-convert-package] Will adjust MENDER_BOOT_PART_SIZE_MB automatically
2024-05-21 04:42:15 [e[1;33mWARNe[0m] [mender-convert-package] Consider adjusting the configuration file to avoid this message
2024-05-21 04:42:15 [DEBUG] [mender-convert-package] Running: (./mender-convert-package:168): run_and_log_cmd():

mv --force work/rootfs/data work/data

2024-05-21 04:42:23 [e[1;33mWARNe[0m] [mender-convert-package] The calculated rootfs partition size 3892 MiB is too small.
2024-05-21 04:42:23 [e[1;33mWARNe[0m] [mender-convert-package] The actual rootfs image size is 9423 MiB
2024-05-21 04:42:23 [e[0;91mFATALe[0m] [mender-convert-package] You can try adjusting the MENDER_STORAGE_TOTAL_SIZE_MB variable to increase available space, or modify one of the variables IMAGE_ROOTFS_SIZE, IMAGE_ROOTFS_EXTRA_SPACE or IMAGE_OVERHEAD_FACTOR to reduce the size of the root filesystem.


As I am new with this mender-convert, pls. let me know the further debugging!