This is not directly related to mender but thought I could get some info in case people have already done it.
I have a Pi-based system booted in rescue mode. Rescue mode lives in tmpfs completely allowing full control of the underlying storage.
The plan is to provide a USB drive with a full .img file and a rootfs-image mender file. The .img file includes p1=read-only boot, p2 and p3 identical read-only filesystem for active and inactive root and p4 for read-write data storage. The plan is to:
- dd write the img file to /dev/mmcblk0 that will create the partitions with default p1, p2, p3 and p4 filesystem
- mender install the rootfs-image mender file to p2 and/or p3 to practically push our updated code
I believe after step 1 I would need to mount some locations and chroot to p2 or p3.
Any hints or ideas?