Given unreliable mender startup; solved (hope) by this:
create device key, your script
install and start mender (still stops, first run)
do a buncha time consuming package install / config
restart mender (this time, stays running)
I still get the same lastlog entry as above, mender first run, then stop, despite key existence
Thanks @rossbcan and @mirzak for all your work, the discussion and insight this thread has provided. Its really helpful as addition to the formal documentation to the https://mender.io/blog/porting-mender-to-a-non-yocto-build-systemU post too. I am also trying to achieve something similar. I just wanted to ask if you had any update? Interested to hear after there seemed to be such momentum built!