You are supposed to be able to use the bless command in current versions of OS X. However here is the script we use to set it via nvram.
[code]
#!/bin/sh
setName=”bork.nbi”
imageName=”bork.dmg”
server=”10.10.10.25″
/usr/sbin/nvram boot-args=”rp=nfs:${server}:/private/tftpboot/NetBoot/NetBootSP0:${setName}/${imageName}”
/usr/sbin/nvram efi-boot-device=”IOMatchIOProviderClassIONetworkInterfaceBSD Nameen0IOEFIDevicePathTypeMessagingIPv4RemoteIpAddress${server}IOEFIDevicePathTypeMediaFilePathPathNetBoot\NetBootSP0\\${setName}\i386\booter”
/usr/sbin/nvram efi-boot-file=”IOMatchIOProviderClassIONetworkInterfaceBSD Nameen0IOEFIDevicePathTypeMessagingIPv4RemoteIpAddress${server}IOEFIDevicePathTypeMediaFilePathPathNetBoot\NetBootSP0\\${setName}\i386\mach.macosx”
[/code]
It’s a little more verbose than the ppc OF version. Gotta love XML 🙂
Blake-
Comments are closed