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 0f6a146..6d98a00 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}