Jun 02, '11 07:30:00AM • Contributed by: tom larkin
So, I dug around in Terminal and was messing around with the bless command. If you execute this command:
/usr/sbin/bless --device /dev/disk0s3 --setBoot --legacy --nextonly
It will set the partition that lives on /dev/disk0s3 to boot for next restart only, and the -legacy option supports booting an OS that does not support EFI boot loaders. Since Windows still requires older technology like a BIOS to actually load from, the -legacy option gives that support.
In the end I wrapped this command up in a Casper policy and allowed users to execute it via self service, which is a web-like app that users can execute policies on their own, and they run as root. So, the user just clicked on the dual boot policy and hit install. The Self Service app ran the bless command and a command to force a reboot.
It is probably possible to accomplish this with an AppleScript saved as an application or something similar.
[crarko adds: I haven't tested this one.]
