Has anyone figured out how to hide the recovery partition while still retaining the ability to boot to it for troubleshooting or restoring the system?
I used the hideRecoveryHD.sh script found on JAMFNation that has the following syntax:
*#!/bin/sh
RecoveryHDName="Recovery HD"
RecoveryHDID=/usr/sbin/diskutil list | grep "$RecoveryHDName" | awk 'END { print $NF }'
/usr/sbin/diskutil unmount /dev/"$RecoveryHDID"
/usr/sbin/asr adjust -target /dev/"$RecoveryHDID" -settype Apple_Boot
/usr/sbin/diskutil info /dev/"$RecoveryHDID"*
The script works great. It hides the Recovery partition as intended. However, it also makes it so that you can no longer boot to it.
Is anyone using a different script/method for hiding the recovery partition with the ability to still boot into it (if needed)?
Thanks.
