aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-02-16 00:28:30 +0000
committerMichael Brown <mcb30@etherboot.org>2009-02-16 00:30:36 +0000
commit076154a1c6ca987f84450c0225c190c9cdd77c59 (patch)
treefbe8e2e7ccbd9de5f048894f9a58687df0c975de /contrib
parentf16668dd600c266ee573badc295745cbb0c0f879 (diff)
downloadipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.zip
ipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.tar.gz
ipxe-076154a1c6ca987f84450c0225c190c9cdd77c59.tar.bz2
[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 0000000..dcfc80e
--- /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 0000000..e3539fc
--- /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