-
Hi there! Not sure if this is the right place, but I'm asking here anyway, as perhaps someone here can help me track down the issue. We're currently trying to integrate Mender delta updates in our Yocto distro (which was modeled on I have an issue thread running on Mender Hub: https://hub.mender.io/t/delta-update-update-module-checksum-error/4750/9 We started out finding this issue on our custom distro, but it turns out a vanilla build of Does this ring a bell for anyone? Any help is appreciated, thanks very much in advance! Also, if there's a better place to discuss this, let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Which branch are you based off of? The original Mender integration wasn't compatible with delta updates, as the rootfs would get modified during an upgrade. Some changes went in to address that, so recent dunfell and later branches should be compatible. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I've progressed sorting out this issue on the Mender Hub. The main cause seems to be the fact that the checksum of the read-only root filesystem is different from what Mender expects. We already tried disabling But what's more: there is even a difference between the two root partitions right after a fresh flash (see this post). Does anyone have a clue why this may be the case? Again, thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
We've managed to fix the issue. As I already alluded to in my previous message, the difference was in However, that's not the whole story. There's more to Thanks everyone for helping out! 😃 We can post a PR for adding the |
Beta Was this translation helpful? Give feedback.
We've managed to fix the issue.
As I already alluded to in my previous message, the difference was in
/etc/machine-id
. It turns out the kernel didn't mount/
as read-only by default, so we had to add that. This will make sure the machine ID writer will not change the root filesystem.However, that's not the whole story. There's more to
/etc/machine-id
than meets the eye. Especially when it is used in conjunction with read-only file systems and overlay mounts for/etc
. The order in which things happen is very important, see this PR for more info. The short summary: it's kinda broken in systemd but not going to be fixed.Thanks everyone for helping out! 😃
We can post a PR for adding the
ro
…