Hi @davidr ,
This Update Module implements the dual rootfs update (the same way that’s built into the Mender client): Root Filesystem Image v2
It contains a link to the module itself, it’s quite simple and should be a good starting point to customize: mender/rootfs-image-v2 at master · mendersoftware/mender · GitHub