Symptoms:
esxupdate.log contains the following error: esximage.Errors.InstallationError: Failed to update bootloader: failed to execute mtools command: COMMAND: export MTOOLS_SKIP_CHECK=1 && mcopy ... STDERR: Disk fullInsufficient space in the ESXi system storage (locker partition) or temporary ramdisk prevents the mtools utility from writing updated bootloader files to the EFI partition.
rm -rf /locker/packages/*rm -rf /tmp/* rm -rf /var/tmp/*df -h.If the EFI boot partition is structurally corrupted, standard recovery keystrokes will not work. We must safely rewrite the boot partition using the ESXi installation media.
Mount the ESXi 8.0.3 Installation Media (ISO) to the server via your out-of-band management console (iLO, iDRAC, etc.).
Boot the server from the ISO.
Follow the prompts to install/upgrade ESXi.
Select your standard boot LUN/disk.
CRITICAL: Select the option to Install ESXi, preserve VMFS datastore.
Complete the installation and reboot.
This method completely wipes and rebuilds the bootbanks and the EFI partition with fresh 8.0.3 files. It will not touch your VMFS datastores or virtual machine data. You will need to re-add the host to vCenter and reapply its network configurations or Host Profile.