[arch-releng] [PATCH 3/3] [archiso2dual] Refactor the code