[PATCH v2 06/13] smegw01: Only commit to new partition if update was successful