Function sync
pub fn sync(archive: &Path) -> Result<()>Expand description
Synchronizes the inactive partitions using the given FOTA blob and the files generated from the FOTA blob in the initial step of the update process.
Will fail if the initial step of the update process failed (ie if the current active partitions don’t have the expected checksum).
TODO: I would rather read from the active partition and write directly into the associated inactive partition, instead of relying on the files generated in the first step.