[syslinux] pxelinux server's IP address

Geert Stappers stappers at stappers.nl
Thu Aug 14 09:43:40 PDT 2008


Op 20080814 om 16:19 schreef Tobias Abt:
> Hello Tomas!
> 
> Tomas M schrieb:
> > Hello, I am experimenting with pxelinux.
> >
> > My setup is currently working.  My network card receives IP address
> > from DHCP server, and then it downloads pxelinux.0 and executes it.
> > PXElinux loads its config file ('pxelinux.cfg/default') and is able to
> > download vmlinuz and initrd.gz from TFTP server, and execute vmlinuz.
> >
> > Now the question: is there any way to pass server's IP address as
> > a commandline argument to vmlinuz? Like if I type it to 'append'
> > section in config file.
> >
> > I would like to see /proc/cmdline after the vmlinuz boots and I'd
> > like to be able to grep servers IP address from there.
> >
> > Is there any way ?
> 
> Just add an IPAPPEND line to your config file, like this:
> 
>    LABEL linux
>      KERNEL vmlinuz
>      APPEND root=/dev/nfs nfsroot=/srv/ceptix.neu vga=785 initrd=initrd
>      IPAPPEND 1
> 
> This adds a ip=... command parameter like described in the linux
> documentation file:
> /usr/src/linux/Documentation/filesystems/nfsroot.txt

http://lxr.linux.no/linux+v2.6.26.2/Documentation/filesystems/nfsroot.txt




More information about the Syslinux mailing list