How do auto-generate a 2nd UV for lightmaps?

Just to follow up on this topic: Generating lightmaps does nothing for the mesh to get lit. Ironically it gets lit when lightmass hasn’t yet been built.

I’d like to know how to solve this.