Re: Pxe Question
Joshua Oreman <[email protected]>
| Newsgroups | gmane.network.etherboot.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 5, 2009 at 11:56 AM, Jason Liedtke<[email protected]> wrote: > Is there a way to edit the gPXE to insert these commands when it is > booting. > > gpxe> set filename pxelinux.0 > gpxe> set next-server 1.1.1.100 > gpxe> autoboot > > I'm attempting to make a FOG boot CD without needing to manually type them > in. Yes: embed a gPXE script. ~/gpxe/src$ cat >startup.gpxe <<EOF > #!gpxe > set filename pxelinux.0 > set next-server 1.1.1.100 > autoboot > EOF ~/gpxe/src$ make bin/gpxe.iso EMBEDDED_IMAGE=startup.gpxe You can modify this example for different script lines or a different make target. You can also embed multiple images, so e.g. you could have both a script that booted a kernel and the kernel itself embedded in gPXE. Hope this helps, -- Josh ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july