[debian-lan-devel] Additional Parameter for installing automatic?
Andreas Schockenhoff
asc at gmx.li
Tue May 14 18:44:44 UTC 2013
Hi,
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
-------------------------
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
regards Andreas
More information about the debian-lan-devel
mailing list