I've been using Neagle's great tool "InstallOSXpkg" to deploy Lion and have now begun testing with Mountain Lion. That tool is introduced here: http://managingosx.wordpress.com/2012/07/25/son-of-installlion-pkg/
The problem: I can't get the right policy settings to both properly reboot the mac into its install environment AND log the policy as completed. Instead, what happens is one of three things:
1) If I set the policy to "reboot only if a package or SWU requires", the copy of the install is made but the installation of the OS never happens. The computer remains booted, just now with an "Install OS X Data" folder in the root directory.
2) If I set the policy to "reboot only if a package or SWU requires" AND also add "/sbin/reboot" into the RUN COMMAND field in the advanced tab, the copy will occur, the mac will reboot into the right environment and the new OS will install! However... the policy won't log that it's completed so, 15 minutes later, it repeats itself.
3) If i set the policy to "reboot immediately" and include the "/sbin/reboot/" command, the computer just keeps rebooting in an endless loop.
JSS = 8.5.2
pkg was NOT tagged in casper admin as "requires reboot" at the time of this posting but i'm experimenting with that next.
thoughts?