image.mk: run LegacyDevice prepare once instead of once per filesystem