Soooo looooong story short there are some tweaks that can be made to the rc.netboot file in the /etc folder of the netboot.dmg file in the netboot folder on the deployment server. THrough a lot of testing I've modified the do_init() function with the following tasks to prove where the naming of the netboot image comes from.
# set the ComputerName based on what the NetBoot server told us it was
machine_name=$(ipconfig netbootoption machine_name 2>&1)
if [ $? -ne 0 ]; then
echo "no machine name option available"> /opt/err.txt
else
echo "Setting ComputerName to ${machine_name}"> /opt/err.txt
scutil --set ComputerName "${machine_name}"
fi
cd /opt
When I do that I always get the line Setting ComputerName to netboot001 (Now OSX will change this to "netboot001 (2)", "netboot001 (3)"... later in the process, but at this point in the boot process it's proof of the name I believe.) Now having this improper name during boot can be problematic. I am in the process of changing the name post boot, but ideally I would like the netboot server to hand out the correct name to begin with. Since the communication is already there all I have to do is catch whatever it is on the deployment server that generates that name and throw a query before it pushes it down the pipe. If anyone has any information on what pushes that down I'd love to know and will share the resulting modifications if it helps ayone.
Thanks! I tihnk having this will make imaging and many other tasks much more functional (Won't change the name of the computer in the manager etc...)