Updating/Compiling the latest version of iPXE
-
The iPXE component of the FOG Project server is a vital part of PXE booting into FOG. With rapid advances in hardware, both iPXE (managed by a different FOSS group) and FOG can slip behind the latest hardware. The developers of the FOG Project try to release an updated version of FOG every 18 months. In some cases you can just update the FOS Linux kernel to get support for the latest hardware. Some times you will need to update/compile the latest version of iPXE using your FOG server to get the latest version of iPXE to support pxe booting.
The following steps will walk you through updating iPXE using your current FOG server. Understand this method of (re)compiling iPXE only works if you use the
gitmethod to install FOG. If you installed FOG using the tarball then you will need to wait for the next release of FOG to get the latest iPXE builds.- PXE boot any computer and record the build code listed on the iPXE banner. The build code is a hex number inside the brackets “()”). We will compare this build code in a later step to ensure your iPXE boot loader files have been updated.
- Navigate to where you downloaded the FOG installers using
git. Depending on which directions you followed these files will be in either/optor/root. The parent directory we are looking for is calledfogproject. For the remainder of this tutorial I’ll assume the fogproject directory is in the /root directory, you will need to adjust the file paths based on your fogproject path. - Navigate to
/root/fogproject/utils/FOGiPXEdirectory - Run the bash script buildipxe.sh with this command
./buildipxe.shNOTE: your fog server will need internet access to recompile iPXEIt should take about 10 minutes to recompile iPXE. - When the compile is done you will be presented with a command prompt once again. Understand the
buildipxe.shscript only compiles the iPXE binaries. It does not install them in your production environment. - The proper way to update your production environment is to rerun the fog installer using all of the preselected options. Reinstalling fog using the fog installer is not destructive, the installer remembers your previous settings and just updates any new files into your production environment.
- The hacker way to update your production environment is to copy over the updates files to the /tftpboot directory with this command
cp -R /root/fogproject/packages/tftp/* /tftpboot
Note:watch the source path if your git fogproject directory is not in the /root/fogproject directory - Run the following command to ensure your iPXE files have a current date on them.
ls -la /tftpboot/*.efi - Now pxe boot the client and confirm that the build code (in the brackets “()”) has changed from the previous step.
-
@george1421 Shall we add this to docs.fogproject.org?
-
Finally found some time… https://docs.fogproject.org/en/latest/reference/compile_ipxe_binaries.html
Will need to edit the wiki as well: https://wiki.fogproject.org/wiki/index.php?title=IPXE#Compile
-
Wiki is also edited.
-
G george1421 referenced this topic on Feb 28, 2023, 11:14 AM
-
G george1421 referenced this topic on Mar 2, 2023, 11:00 PM
-
G george1421 referenced this topic on Mar 24, 2023, 12:30 PM
-
G george1421 referenced this topic on May 30, 2023, 6:27 PM
-
G george1421 referenced this topic on Jun 23, 2023, 1:21 AM
-
G george1421 referenced this topic on Jul 21, 2023, 8:32 PM
-
G george1421 referenced this topic on Jul 24, 2023, 8:34 PM
-
G george1421 referenced this topic on Aug 15, 2023, 6:19 PM
-
G george1421 referenced this topic on Aug 16, 2023, 4:29 PM
-
G george1421 referenced this topic on Aug 22, 2023, 2:02 PM
-
L lebrun78 referenced this topic on Aug 30, 2023, 9:33 AM
-
G george1421 referenced this topic on Sep 11, 2023, 4:05 PM
-
G george1421 referenced this topic on Oct 6, 2023, 9:09 PM
-
G george1421 referenced this topic on Nov 8, 2023, 10:51 PM
-
G george1421 referenced this topic on Dec 19, 2023, 8:51 PM
-
G george1421 referenced this topic on Jun 17, 2024, 1:46 AM
-
G george1421 referenced this topic on Jun 21, 2024, 2:46 PM
-
G george1421 referenced this topic on Jun 28, 2024, 11:13 AM
-
G george1421 referenced this topic on Jul 10, 2024, 12:32 PM
-
G george1421 referenced this topic on Jul 11, 2024, 6:56 PM
-
@george1421 https://docs.fogproject.org/en/latest/compile_ipxe_binaries
Just throwing in the permalink to the doc on this process. -
A alessandro19884 referenced this topic on Jul 12, 2024, 10:55 AM
-
A alessandro19884 referenced this topic on Jul 12, 2024, 12:40 PM
-
G george1421 referenced this topic on Jul 14, 2024, 10:21 PM
-
G george1421 referenced this topic on Dec 13, 2024, 10:41 AM
-
J JYost referenced this topic on Dec 18, 2024, 10:26 PM
-
G george1421 referenced this topic on Dec 20, 2024, 5:03 PM
-
G george1421 referenced this topic on Jan 2, 2025, 9:40 PM
-
A AxeMeAQuestion22 referenced this topic on Apr 25, 2025, 8:40 PM
-
G george1421 referenced this topic on May 29, 2025, 12:00 PM
-
G george1421 referenced this topic on Jul 9, 2025, 8:47 PM