]> git.ipfire.org Git - oddments/ipfire-netboot.git/commitdiff
Send the architecture and BIOS type we are running on to the server v1.1
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2015 23:31:19 +0000 (00:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2015 23:31:19 +0000 (00:31 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
ipfireboot.ipxe

index 0f6a146ba6bfaac4991ba7d8d6d71c94efc13f22..6d98a0045077e2740c8594642abf594945ca8e78 100644 (file)
@@ -1,6 +1,9 @@
 #!ipxe
 
 #!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
 
 # 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}