summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMichael Brown2009-02-16 01:28:30 +0100
committerMichael Brown2009-02-16 01:30:36 +0100
commit076154a1c6ca987f84450c0225c190c9cdd77c59 (patch)
treefbe8e2e7ccbd9de5f048894f9a58687df0c975de /contrib
parent[romprefix] Update ROM checksum even if PMM allocation fails (diff)
downloadipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.tar.gz
ipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.tar.xz
ipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.zip
[image] Allow multiple embedded images
This patch extends the embedded image feature to allow multiple embedded images instead of just one. gPXE now always boots the first embedded image on startup instead of doing the hardcoded DHCP boot (aka autoboot). Based heavily upon a patch by Stefan Hajnoczi <stefanha@gmail.com>.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/scripts/gpxelinux.gpxe4
-rw-r--r--contrib/scripts/static.gpxe8
2 files changed, 12 insertions, 0 deletions
diff --git a/contrib/scripts/gpxelinux.gpxe b/contrib/scripts/gpxelinux.gpxe
new file mode 100644
index 00000000..dcfc80e6
--- /dev/null
+++ b/contrib/scripts/gpxelinux.gpxe
@@ -0,0 +1,4 @@
+#!gpxe
+dhcp net0
+imgload img1
+boot img1
diff --git a/contrib/scripts/static.gpxe b/contrib/scripts/static.gpxe
new file mode 100644
index 00000000..e3539fc0
--- /dev/null
+++ b/contrib/scripts/static.gpxe
@@ -0,0 +1,8 @@
+#!gpxe
+ifopen net0
+set net0/ip 10.0.2.15
+set net0/netmask 255.255.255.0
+set net0/gateway 10.0.2.2
+set net0/dns 10.0.2.3
+kernel http://etherboot.org/gtest/gtest.gpxe
+boot gtest.gpxe