I’m hitting the following error when executing docker-mender-convert on a debian image on a ubuntu 20.04:
2022-09-28 10:11:46 [INFO] [mender-convert-modify] Not installing GRUB EFI bootloader, relying on platform provided one.
2022-09-28 10:11:46 [INFO] [mender-convert-modify] Installing Mender GRUB tools...
2022-09-28 10:11:46 [INFO] [mender-convert-modify] Installing the GRUB editenv binary
2022-09-28 10:11:47 [INFO] [mender-convert-modify] Generating grub config using update-grub...
mender-convert-modify has finished. Cleaning up...
2022-09-28 10:11:49 [ERROR] [mender-convert] mender-convert failed
2022-09-28 10:11:49 [DEBUG] [mender-convert-modify] When running: (modules/grub.sh:114): run_and_log_cmd_noexit():
sudo chroot work/rootfs grub-install --removable --no-nvram
Disabling OS prober in offline mode...
Cannot probe device in command line: --target=fs_uuid --device /dev/sda3
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
2022-09-28 10:11:49 [ERROR] [mender-convert] mender-convert failed
2022-09-28 10:11:49 [ERROR] [mender-convert] mender-convert exit code: 1
This happens on some bare metal ubuntu 20.04 machines (but not all) and on ubuntu 20.04 VMs. In all cases the same input image and config was used.
MENDER_ARTIFACT_NAME=release-1 \
./docker-mender-convert --disk-image "input/Debian-11-x86-64.img" \
--config configs/debian-qemux86-64_config \
--overlay input/rootfs_overlay_demo/
Any ideas about what is going wrong here and why this would depend on the host machine?