I know there can be specified scripts that run at esxi first boot, and I know if /usr/lib/firstboot. But I want the detailed system documentation. I want to know how the system knows that first boot is already done, and how it executes. I haven't found any information on this anywhere. Anyone here who can point me in the right direction?
No not really
This describes provisioning the host with vSphere Auto Deploy, but not the first boot process that happens inside the esxi host.
For instance, when executing a kickstart scripts %firstboot section, how does this firstboot process decide when the first boot is and never execute the script again?
I would like to know the system that the firstboot handler works by.