InstaDMG share confuses script
Just a quick error I ran into. I have a InstaDMG share on my server that I connect to to update packages. When I got a MacPro for testing, I mounted the share and copied the internals to the local hard drive. With the share still mounted at /Volumes/InstaDMG, the script failed saying "hdiutil: create failed - No such file or directory asr: image scan failed - No such file or directory." I finally found out that I had to eject the share before the script ran properly.
So if anyone else has a InstaDMG share, and your script's not working, just eject it!