I'm looking to use Self Service to allow a small, select group of users to do a full wipe and reinstall of their OS. We use DEP for them to enroll their computers, and they can already do OS upgrades via Self Service, but they are also requesting the ability to do a clean install of the OS.
The computers do have the Recovery partition, but also a firmware password that the end users don't know (part of our security policies). Thus, I was thinking to use Self Service to bless the Recovery HD and reboot, so the end user can go through the OS install steps themselves.
However, I'm having trouble making a script that will do this. I've tried both the bless command and the systemsetup -setstartupdisk command, but nether would work. Here's the processes I tried via script:
mount the Recovery HD
bless the volume
restart
this is the bless command I used:
bless --mount /Volumes/"Recovery HD" --setBoot --nextonly
This doesn't give an error, but also doesn't work
And this is the systemsetup command:
systemsetup -setstartupdisk /Volumes/"Recovery HD"
This gives the message
"Not a System Folder : /Volumes/Recovery HD/System/Library/CoreServices"
Any thoughts on the process in general (is there a better way?) or specific help with the scripting would be appreciated!
