"Mounted root does not match boot loader environment" error with overlayroot setup

adbjo
Tue, 22 Jul 2025 10:13:53 +0000
General Discussions

When using the overlayroot package on Debian to mount a rw overlay on top of a ro rootfs, the rootfs update module fails with the following error:

"Mounted root does not match boot loader environment ($1)!"

See this line: mender/support/modules/rootfs-image at 9fc5b2fec4b525ee045cc93c0a030d94aa308394 · mendersoftware/mender · GitHub

Is this a bug? Does mender actually care about how the root is mounted after handing it over to the kernel / initramfs?

Can this check be disabled? Or can it be changed to instead check that the passive partition is not mounted?

Thanks!