ESXi supports dual stack networking (IPv4 and IPv6) by default, however users can also configure just IPv4 or IPv6, which requires a system reboot for the changes to go into effect.
Recently, I received a question from a colleague asking if there was a way to disable IPv6 during ESXi Kickstart (aka scripted installation) but NOT require an additional reboot as this setting is typically added in the %post or %firstboot section, which will require an additional reboot due to changing the networking stack default.
The solution was actually quite simple by just leveraging the %pre section, which would ensure that IPv6 is disabled upon the initial reboot after the ESXi installation.