Posted on 02-19-2016 06:51 AM
Hi, I am trying to use AutoDMG to build DMG package for OSX 10.11.3. We are using Casper Suite 9.81
When I create the configuration in casper admin by using DMG created by autodmg and click compile, I get the warning that this is "Multi-Partition DMG and compiling it will result in single partition". I want to keep the recovery partition that is with DMG and not add additional recovery partition.
I understand people use autodmg for this purpose and wanted to hear if you faced this issue and fix for it.
Appreciate any help.
Posted on 02-19-2016 07:26 AM
Just to update, If I continue with process, compile configuration and use that for mac image.
I don't see Recovery HD which effectively prevents me from enable file encryption on the disk.
Posted on 02-19-2016 07:46 AM
I don't think that you can get a Recovery partition using Compile. Is there a reason you're doing that?
Posted on 02-19-2016 07:48 AM
Have you given thought to building the components you need into the AutoDMG image creating process instead of compiling with Casper? There is a tool that you can deploy to install the recovery partition on computers that don't have it. I think this is it:
https://github.com/MagerValp/Create-Recovery-Partition-Installer
Posted on 02-19-2016 08:41 AM
@scottb Thanks for the suggestion. when I used the configuration without compilation it worked perfectly and I can see recovery HD.
I am new to this and I was compiling it because I thought that is required step to build a configuration :).
I have another issue now which is that policy history is not being flushed after re-imaging. I added the script to flush with configuration to run at "reboot", but it appears it is not being executed because I can see policy log, when I run the command to flush the policy history manually, it works fine.
Any suggestion why this might be happening?
When I was using the compiled configuration with casper image, I wasn't facing this issue.
Posted on 02-19-2016 01:04 PM
We used to use that a while back. But dumped it for a modular approach that most use.
I think it might have also been the only way at one time to get a block copy, but maybe that's made up in my head.
As to the other issue, are you erasing the Mac during the Casper Imaging process?
Posted on 02-20-2016 02:55 AM
@jamfquery Yea compilation is not really needed & rarely recommended.
The policy history should be flushed as part of the imaging workflow (I think), can you post the workflow?
How are these policies scoped?
Posted on 02-21-2016 12:11 PM
If the flushing becomes a real problem just add a script set to run on reboot with
jamf flushPolicyHistory
Not really a solution, but it will certainly do the job. Most people have some kind of first run script anyway so add it somewhere near the top and it will get the job done.