]> git.ipfire.org Git - oddments/ipfire-netboot.git/blobdiff - ipfireboot.ipxe
Send the architecture and BIOS type we are running on to the server
[oddments/ipfire-netboot.git] / ipfireboot.ipxe
index 0f6a146ba6bfaac4991ba7d8d6d71c94efc13f22..6d98a0045077e2740c8594642abf594945ca8e78 100644 (file)
@@ -1,6 +1,9 @@
 #!ipxe
 
+# Determine the architecture we are running on
+cpuid --ext 29 && set arch x86_64 || set arch i386
+
 # Try to boot from DHCP.
 dhcp net0
 
-chain http://boot.ipfire.org/menu.gpxe
+chain http://boot.ipfire.org/menu.gpxe?arch=${arch}&platform=${platform}