On Fri, Nov 02, 2001 at 10:29:43AM +0600, Gerry Kirk wrote:
> > You will need to load the IDE modules on the thin-client side in order  to get 
>harddrive
> > support.  Then, add some variable/value pairs to  lts.conf to define your swap 
>partition and
> > swap device.  Then in
> > rc.local, attempt to 'swapon' the swap device and partition.  If that  fails, then 
>*assume*
> > that swap has not been created and issue a 'mkswap'  to the device/parition.  Then 
>attempt the
> > 'swapon' again.  If that fails  also or the mkswap fails, then assume that the 
>device/partition
> > is not  available and error accordingly.
> >
> I understand what you are saying, but I am not clear on implementation. Can I 
>specify the IDE
> modules in lts.conf? Can you give me an example of defining the swap partition in 
>lts.conf? I
> couldn't find any documentation on that. Which rc.local are you referring to, one
> in /tftpboot/lts/ltsroot/etc/rc.d? I don't want all workstations to build a swap 
>device - how can I
> do this selectively?

Are you using 2.08 or 2.09pre3-4 ? 
In 2.08, you should do the following:
edit rc.local (in /tftpboot/lts/ltsroot/etc/), For example:

SWAPPART=`get_cfg SWAPPART`
if [ "${SWAPPART}" != "" ]; then #following is the translation of above hints
        insmod path/to/module/ide.o # there is a better way to have modules, this
                                                                # is documented 
somewhere
        if ! swappon ${SWAPPART}; then
                mkswap ${SWAPPART}
                swappon ${SWAPPART}
        fi
fi

Then you put, in lts.conf, 
[ wks_with-swap ]
        SWAPPART = /dev/hda3

If you use 2.09pre3-4, make a script with the above things, and append
. /etc/ltsp_functions
as the first line of the script. Put the scipt in /opt/ltsp/i386/etc/rc.d.
If this script is called "local_swap", the lts.conf becomes:

[ wks_with-swap ]
        RCFILE_xx = local_swap
        SWAPPART = /dev/hda3


All this si is totally untested, but it should give you the 

Pat

_____________________________________________________________________
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.openprojects.net

Reply via email to