From 076154a1c6ca987f84450c0225c190c9cdd77c59 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 16 Feb 2009 00:28:30 +0000 Subject: [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 . --- contrib/scripts/gpxelinux.gpxe | 4 ++++ contrib/scripts/static.gpxe | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 contrib/scripts/gpxelinux.gpxe create mode 100644 contrib/scripts/static.gpxe (limited to 'contrib') 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 -- cgit v1.2.3-55-g7522