I created a new mender rootfs artifact (using mender-artifact 3.5.0) and installed it on the device via mender -install (mender client version 2.5.0).
After booting into the new image I don’t get any output via “mender show-provides” as described in Software versioning | Mender documentation
I was expecting to get the rootfs-image.version, which is set in the artifact (verified with “mender-artifact read”):
Updates:
0:
Type: rootfs-image
Provides:
rootfs-image.checksum: 12e434063264e187577b2ecda3e9e2e105f2eeac90d599b47c95250d92ae94f1
rootfs-image.version: rc_cube_v21.04.0-pre2
Is this not supported when installing in standalone mode, is there something else I need to do or is this a bug?
Did you commit the update? You probably just need to do that: “mender commit”. I noticed that the “Provides” are only updated when the update is committed.
Did you happen to use the --no-default-software-version argument while building the artifact? This is often used to upgrade old devices which don’t support the software versioning, and if left in place, will prevent software versioning from working.
I can’t reproduce this here. Can you post the full output from mender-artifact read, as well as the exact commands you used, including intermediary commands, such as reboot.
Yes, it’s working now and I can’t reproduce it any more.
Maybe it was because the mender store was somehow not “initialized” yet when updating the first time or something like that…