[PATCH v2 1/3] migrate: Fix several errors with passt-repair