Posted on 09-16-2014 08:11 AM
Hello All,
I'm a super noob and just starting to dip my feet into the wonderful world of JAMF NATION!
is it possible to clone a 10.9.4 recovery partition and if so what are some of the ways you guys like to do this?
also is it possible to roll out the recovery partition to machines that do not have it? if so what are the best practices to do it
thank you
Posted on 09-16-2014 08:18 AM
Hello and welcome
This should be a good starting point
https://github.com/MagerValp/Create-Recovery-Partition-Installer
Cheers
Carlo
Posted on 09-16-2014 08:30 AM
OMG, thank you so much !!!
Posted on 09-16-2014 08:37 AM
So would it also be possible to roll out the recovery partition to machines with no recovery partitions on it?
Posted on 09-16-2014 04:24 PM
Hi. This is how I do my configurations with Recovery Partitions.
Mount Recovery Partition
sudo diskutil mount disk0s3
Open Disk Utility & create a new disk image from the RecoveryHD. Once it has been created, do a scan image for restore.
Open Casper Admin, upload the RecoveryHD image and give it a priority of 1.
Create a new configuration. Call it RecoveryHD and add the image to this configuration.
Create another new configuration (or edit an existing) and add a partition for the RecoveryHD. Call it RecoveryHD, give it a size of 1GB and a max percentage of 99%. Choose the RecoveryHD configuration.
Save.
You will also need this script to hide the RecoveryHD. Set the priority to after.
#!/bin/sh
/usr/sbin/diskutil unmount /dev/disk0s3
/usr/sbin/asr adjust -target /dev/disk0s3 -settype Apple_Boot
All machines that are imaged with that configuration will now have the recovery partition.
Hope that helps.
Posted on 09-17-2014 04:49 AM
Check this link http://forums.macrumors.com/showthread.php?t=1595829 - pretty slick solution and works. I just extracted all the needed files and tools (dmtest) from the "Lion Recovery Update" as well as from the Mavericks Installer (BaseSystem.dmg and BaseSystem.chunklist), created a new Package via Composer and added a very little postinstall script to the .pkg which looks like this:
#!/bin/bash
# Create Recovery Partition (Mavericks 10.9.4)
# Build Recovery partition
/usr/bin/logger -s -t "Create Recovery Partition" "Building Recovery Partition. Please Wait..."
/Library/Application Support/JAMF/bin/BaseOS/dmtest ensureRecoveryPartition / /Library/Application Support/JAMF/bin/BaseOS/BaseSystem.dmg 0 0 /Library/Application Support/JAMF/bin/BaseOS/BaseSystem.chunklist
/usr/bin/logger -s -t "Create Recovery Partition" "Rebuilding System Kext Caches"
/usr/sbin/kextcache -f -u /
exit 0
The new .pkg is set to "Install on boot drive after imaging".
Cheers :)
Posted on 09-17-2014 07:50 AM
Thank you for all your input. You guys saved my bacon !
Posted on 09-17-2014 08:59 AM
Not for nothing, but y'know you can also make images that HAVE recovery partitions...
Allister
@sacrilicious
Posted on 09-17-2014 09:36 AM
@Banks I do know that, but someone before me rolled out images without the recovery partition. I just wanted to know if you can push out just the partition without reimaging everything.
Posted on 09-17-2014 10:57 AM
@DDeleon, yes you can. Have a look at https://jamfnation.jamfsoftware.com/discussion.html?id=5934. I used @rtrouton's article to create 10.7 and 10.8 recovery partitions and deploy them via Casper. I have not tried making a 10.9 recovery partition though. Maybe Rich will comment on whether he knows if his procedure will work for 10.9 or not.
Posted on 09-17-2014 11:05 AM
These days, I'm using MagerValp's tool to create a partition installer:
https://github.com/MagerValp/Create-Recovery-Partition-Installer
Posted on 09-17-2014 11:24 AM
+1 for MagerValp's Recovery utility. Works really well.
Posted on 09-17-2014 12:24 PM
@ mpermann @ rtrouton Thank you for pointing me in the right direction !
Posted on 09-17-2014 03:52 PM
The JAMF-suggested methodology to capture and image Recovery works, but it's convoluted. CRPI and AutoDMG work really, really well in a Casper workflow - been using them at multiple clients for many months.l
Posted on 09-17-2014 08:02 PM
One more point, you can use recovery partition extension attribute to scope.
Posted on 10-03-2014 09:13 AM
rtrouton - I tried using the tool. https://github.com/MagerValp/Create-Recovery-Partition-Installer
Everything worked great with the tool, however when I create a self-service for the .pkg to run, I am getting an error.
"Failed to download files from https://jamfserver/software/Packages/RecoveryPartitionInstaller-10.9.5.pkg/index.bom"
Thoughts?
I have been chatting with JAMF support and they want me to change the .pkg into a .dmg, but I would rather try and figure out the issue so I can use the tool.
Posted on 10-03-2014 09:24 AM
What version of Casper are you running? If you're on 8.73, I had a similar sounding issue where Casper would sometimes fail to properly download and install a bundle-style package.
Posted on 10-03-2014 09:27 AM
Running Casper 9.32 on Windows server 2008 R2
Posted on 10-03-2014 09:35 AM
Did you migrate your repo? If you're running 9.32 and have a migrated repo, all bundle-style packages should be automatically compressed into .zip files as part of the process of adding it to your Casper repo via Casper admin.
Posted on 10-03-2014 09:56 AM
I don't know what you are asking by "Migrate your repo?" or how to determine if the "bundle-style" package was compressed into a .zip file?
If you are asking if I migrated everything from 8.x to 9.x when I updated the JSS, I would guess, yes. Jamf support actually did the upgrade via webex.
If you are asking what process I did for the "Recovery Partition".
I downloaded the "Create Recovery Partition Installer" from https://github.com/MagerValp/Create-Recovery-Partition-Installer. I then downloaded the latest 10.9.5 installer from the App Store under my personal apple ID. (I am still working with my bosses to get an organization apple id). I then launch the CRPI and drag/drop the 10.9.5.app file, which in turn spit out the.pkg file. I then opened Casper Admin and drag/drop the .pkg file into Casper Admin. Then saved Casper Admin. Then I went to the web-console for the JSS and created a policy that is configured with the .pkg file to install. I did not add any commands in the "Files and Processes" within the policy. The policy is very basic. No trigger/Run Ongoing/Self-service--Install pkg--Run Inventory Update after completed.
Posted on 10-03-2014 10:19 AM
Posted on 10-03-2014 10:37 AM
I have not, but I will do it migrate my stuff today.