Q: To where is the /mach symlink resolved when netbooting (or any other sort of booting)?

A: To the path of the kernel booted; typically, this is:

/private/tftpboot/mach

though it could be rather anything, depending on what was in the server's bootptab and NetInfo databases. By default, this file is itself a symlink, to /sdmach.

Default boot devices and $BOOTFILE values are

SCSI sdmach
OD odmach
Net /private/tftpboot/mach

Note that if the user booted with a command such as

bsd()MyMach

then $BOOTFILE will resolve to MyMach.

QA370

Valid for 1.0, 2.0, 3.0, 3.1