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