not in packer directly, but a friend made canga.io, which adds layers to vm image generation. this would get you where you want, I think.