I just want to emphasize/clarify one point that Rusty glossed over: InstaDMG can’t run these sort of scripts for you since it only runs when you are creating the image, not while you are deploying it. So to make this happen you have to install something in the image that will do it for you (or use something in your deployment tool, or your subsequent management tool). Once you have these scripts packaged up, InstaDMG will be happy to help you install them.
When I do this sort of thing it is almost always with a LaunchDaemon, and I have been pushing recently to make sure that my scripts are all smart enough that they can be run at every boot and not slow things down when they are not needed. Partially this is because I am not using any real management tool for the installed computers, and this is taking its place, and partially this is because my computers can wander a bit before they make it to my subnet, and once they are there I want them looking like I set them. So special-case reasons, but I still think that it is generically good advice.
Comments are closed