[linux] - ensure that migration step is only done once - same approach as for darwin