Script reboot to specific netboot image

queohsi
New Contributor

I have a few netboot images available on my netboot server, and I'd like to be able to have a user execute a reboot to a specific netboot image rather than give them instructions to choose the image out of startup disk in system preferences. Writing a script to set as a Self Service policy seems the obvious choice.

Some googling has told me that this would get me started, but that using "/netbootimage" wouldn't work. bless --netboot --server bsdp://255.255.255.255/netbootimage; restart

I'm choosing 255 so it boots to the default netboot server so I can scope this out to multiple offices. Obviously "netbootimage" is a generic name.

Has anyone tried this with a specific netboot image, not just the default one?

2 REPLIES 2

carmelolopez
Contributor

Hi,
I use:

#!/bin/sh

sudo bless --netboot --booter tftp://NETBOOT-SERVER=IP/NetBoot/NetBootSP0/Casper.nbi/i386/booter --kernel tftp://NETBOOT-SERVER=IP/NetBoot/NetBootSP0/Casper.nbi/i386/mach.macosx --options "rp=nfs:NETBOOT-SERVER=IP:/private/tftpboot/NetBoot/NetBootSP0:Casper72.nbi/Install.dmg.sparseimage"

shutdown -r now

duke
New Contributor

I Tried it, sometimes it works sometimes not

Is it right that you have specified another nbi in the 3. place ?

2 x Casper.nbi , 3. Casper72.nbi ?