On Sat, October 14, 2006 2:52 am, H. Sami Sozuer wrote:
> Hi all,
> The initramfs in LTSP has a file named init which contains the lines
>
> if [ -z "${NIC}" ]; then
> NIC=`/bin/pci_scan /etc/niclist`
>
> Normally NIC is undefined so init proceeds to the pci_scan line and
> finds the nic,
> by going through the list of nics in /etc/niclist.
>
> How can we define the environment variable NIC, before this test, so
> that it doesn't
> find it through a pci_scan. Should this be done in lts.conf or in
> dhcpd.conf ?
A cool thing about Linux is that you can pass command-line parameters to
the kernel, and if the kernel doesn't understand the options, it passes
them on to the init program as environment variables.
So, you just need to add 'NIC=some_driver' to the kernel command line.
The method of passing kernel args is different, depending on whether you
are using PXE or Etherboot. Here's the wiki page that explains how to do
this,
http://wiki.ltsp.org/twiki/bin/view/Ltsp/KernelOptions
Jim McQuillan
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net