I am trying to upgrade to Yocto Warrior using the master branch of meta-mender.
I have it fully working on both grub (x86) and u-boot (raspberrypi).
There is only one problem with the mender -commit when booting in the warrior version:
time="2019-07-26T21:31:07Z" level=info msg="Loaded configuration file: /etc/mender/mender.conf" module=config
time="2019-07-26T21:31:07Z" level=info msg="No dual rootfs configuration present" module=main
time="2019-07-26T21:31:07Z" level=info msg="Update Module path \"/usr/share/mender/modules/v3\" could not be opened (open /usr/share/mender/modules/v3: no such file or directory). Update modules will not be available" module=modules
time="2019-07-26T21:31:07Z" level=error msg="Dual rootfs configuration not found when resuming update. Recovery may fail." module=installer
Committing Artifact...
time="2019-07-26T21:31:07Z" level=error msg="Commit failed: Stub module: Cannot execute ArtifactCommit" module=standalone
time="2019-07-26T21:31:07Z" level=error msg="Pretending to support rollback so that host can reboot and try to restore state" module="stub_installer"
Rolling back Artifact...
time="2019-07-26T21:31:07Z" level=error msg="Unable to roll back with a stub module, but will try to reboot to restore state" module="stub_installer"
time="2019-07-26T21:31:07Z" level=error msg="Error when executing ArtifactFailure state: Stub module: Cannot execute ArtifactFailure" module=standalone
time="2019-07-26T21:31:07Z" level=error msg="Error when executing Cleanup state: Stub module: Cannot execute Cleanup" module=standalone
time="2019-07-26T21:31:07Z" level=error msg="Stub module: Cannot execute ArtifactCommit" module=main
I’ve traced the problem to simply the /etc/mender/mender.conf file missing the following lines:
If I add these config manually, mender -commit works. I can upgrade and downgrade from Yocto thud without any errors.
These configuration seems to be generated from mender.inc or mender-setup.bbclass. I am not sure why under the master branch they are not getting added to the mender.conf file.
It’s great that you got it working based on warrior with a raspberry pi! I’m trying the same but am having some trouble. Is your project open-source so I could look at how you did it?
Regarding your question, could you look into your /data parition. There you should also find a set of config files, for me it’s in /data/mender/mender.conf.
So whenever I run mender, I always add the -data /data/mender -config /data/mender/mender.conf args.