[debian-lan-devel] Additional Parameter for installing automatic?

Andreas B. Mundt andi.mundt at web.de
Thu May 16 18:14:36 UTC 2013


Hi Andreas,

I am sorry, I do not get what you are doing exactly.  Can you explain
it in more detail?

On Tue, May 14, 2013 at 08:44:44PM +0200, Andreas Schockenhoff wrote:

> I use this script for testing my mainserver in a virtual environment.
>
> #/bin/bash
>
> error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
>
> fai-chboot -IEFv -u nfs://faiserver/srv/fai/config -k "hostname=mainserver MAINSERVER=COMBINED" 08:11:11:11:11:41
> fai-chboot -IEFv -u nfs://faiserver/srv/fai/config -k "hostname=mainserver MAINSERVER=COMBINED" 08:11:11:11:11:51
> fai-chboot -IEFv -u nfs://faiserver/srv/fai/config -k "hostname=mainserver MAINSERVER=SEPARATE" 08:11:11:11:11:61
> fai-chboot -IEFv -u nfs://faiserver/srv/fai/config -k "hostname=gateway"    08:11:11:11:01:01
>
> # if this is realy needed is is a bug somewhere else.
> chmod a+r/srv/tftp/fai/pxelinux.cfg/*
>
> # may be it would be nice to copy this files to the config space for easy testing.
>
> exit $error
>
> -------------------------

This script is run on a faiserver which has nothing to do with
debian-lan, and used to test the installation via PXE?

> also I modified class/SERVER_A.var a little bit.
>
>
> -if [ "$MAINSERVER" ] ; then
> -    if [ "$MAINSERVER" = "COMBINED" ] ; then
> -        MAINSERVER_IPADDR=$GATEWAY
> -    fi
> -else
> -#  if [ "$GATEWAY" != "$MAINSERVER_IPADDR" ]&&  \
> -if [ "$FAI_ACTION" == "install" ] || [ "$CONVERT" == "true" ] ; then
> +if [ "$GATEWAY" != "$MAINSERVER_IPADDR" ]&&  \
> +   [ "$FAI_ACTION" == "install" ] || [ "$CONVERT" == "true" ] ; then
>
>
>
> -if [ "$MAINSERVER" ] ; then
> -    if [ "$MAINSERVER" = "COMBINED" ] ; then
> -        MAINSERVER_IPADDR=$GATEWAY
> -    fi
> -else
> -#  if [ "$GATEWAY" != "$MAINSERVER_IPADDR" ]&&  \
> -if [ "$FAI_ACTION" == "install" ] || [ "$CONVERT" == "true" ] ; then
> +if [ "$GATEWAY" != "$MAINSERVER_IPADDR" ]&&  \
> +   [ "$FAI_ACTION" == "install" ] || [ "$CONVERT" == "true" ] ; then
>

Can you provide a proper patch with some context around the changes?
(If this is a modification in the config space of a debian-lan
mainserver, use 'git diff' in /srv/fai/config/' after your
modifications.)

Many thanks and best regards,

     Andi



More information about the debian-lan-devel mailing list