mirror of
https://github.com/ipxe/ipxe
synced 2025-12-06 17:30:26 +03:00
[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>.
This commit is contained in:
4
contrib/scripts/gpxelinux.gpxe
Normal file
4
contrib/scripts/gpxelinux.gpxe
Normal file
@@ -0,0 +1,4 @@
|
||||
#!gpxe
|
||||
dhcp net0
|
||||
imgload img1
|
||||
boot img1
|
||||
8
contrib/scripts/static.gpxe
Normal file
8
contrib/scripts/static.gpxe
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user