Support #20029
openCentOS 7 - UEFI PXE Grub2 not working correctly from a fresh install
Description
Operating System
CentOS Linux 7.3.1611
Infrastructure
UEFI HPE Proliant Gen 9 (Non Secure Boot)
Description
Configuring the DHCP server to point PXE clients at `grub2/grubx64.efi` as stated in various documentation pages does not work correctly out of a fresh foreman installation with tftp enabled.
From what I can tell, it seems that the default grubx64.efi is not correctly loading the grub.cfg files and/or the grub.cfg-macaddr files.
I have been able to successfully "fix" the issue by moving the contents of grub2 into /var/lib/tftboot and links grub2 to /var/lib/tftboot. The grub2 link will sometimes be washed away however when installing new foreman plugins, so this needs to be done often.
I believe that this is an issue with the foreman-installer itself.
Steps to reproduce