Posted on 05-04-2015 11:33 AM
Hi Folks, I'm still new to Casper Suite after using Mike Bombich's netrestore for years and more recently, Deploy Studio. I've been testing image with Casper on a fairly basic image that consists of OS X 10.9.5 as created by AutoDMG with a few scripts and so forth.
Looking at the screen shot (above), it appears the scripts are being executed before the hard drive is erased. I can't see how that would work at all. Do I have to do something clever to get the scripts to execute on reboot? I am using Casper 9.72. I see another choice is 'after'. Does that mean after all other tasks during imaging? Thanks.
Solved! Go to Solution.
Posted on 05-05-2015 06:58 AM
It turns out I had to delete all the scripts inside Casper and create them again. I think this has something to do with the scripts sitting there through various version upgrades. I read something about this elsewhere on this site. Works fine now.
Posted on 05-04-2015 11:43 AM
@endor-moon Yes try AFTER.
Another option is "At Restart" but that depends on your workflow.
Posted on 05-04-2015 01:26 PM
I had everything on at restart or reboot and now set it all to 'after' but still no luck. I'm compiling into an image if that makes a difference. I found once you start compiling these, they ignore changes unless you re-compile, which is reasonable, but I don't see how to go back to a pre-compiled workflow once you start down that path. Another new thing to absorb. ;)
Posted on 05-05-2015 05:22 AM
I have had success ensuring that scripts run after reboot by building script / LaunchDaemon pairs and installing them as a dmg. Imaging sorts package installation using the assigned "Priority", so they will always install after the Erase HD process.
It does involve more legwork as you will have to write the LaunchDaemons and package the combo.
Posted on 05-05-2015 06:58 AM
It turns out I had to delete all the scripts inside Casper and create them again. I think this has something to do with the scripts sitting there through various version upgrades. I read something about this elsewhere on this site. Works fine now.
Posted on 05-05-2015 12:22 PM
@endor-moon odd issue. But thanks for sharing the solution. I'll keep an eye out for it.