For imaging individual machines I'm using a USB stick. Whether I use JAMF Casper Netinstall Image Creator or Macmule's AUTOCASPERNBI, I'm often seeing the Casper Imaging application launch twice. This can be from a USB stick or even from NetBoot.
If I don't cancel one of the instances things can get hairy very quickly as the first instance will start block copying the operating system to the target drive and at some point the second instance will try the same thing. Or, when quitting from either instance, the distribution point gets unmounted causing the remaining instance to lose its connection.
I saw this is a bug on GitHub for Macmule but haven't seen anything about this for JAMF's own tool. Looking at how each app gets called I am wondering if this is Apple's own bug. I believe the applications are being called by shell scripts that themselves are called because they have a plist in /Library/LaunchDaemons that has the RunAtLoad parameter set to true along with the LaunchOnlyOnce parameter set to true.
Perhaps JAMF could update the Casper Imaging application. It should have some defensive code in it to cause it to quit -- without unmounting the distribution point -- if it finds another instance of itself is already running. That would solve the problem. I am very big on defensive code. Programmers should always ask themselves what can go wrong and if it does, how would my program handle it. ;)
Of course the ideal solution is to find and fix the original bug, but often that takes too much time.
Any thoughts on this?
Cheers...
