[Fai-commit] r3433 - trunk/lib

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Apr 19 12:07:36 UTC 2006


Author: lange
Date: 2006-04-19 12:07:35 +0000 (Wed, 19 Apr 2006)
New Revision: 3433

Modified:
   trunk/lib/subroutines-linux
Log:
use IP address when calling fai-chboot in task_chboot, this helps when
the install client has two network cards and the host name lookup fails


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-04-19 10:22:06 UTC (rev 3432)
+++ trunk/lib/subroutines-linux	2006-04-19 12:07:35 UTC (rev 3433)
@@ -176,9 +176,9 @@
     local frsh
     local doexit=0
     local hostname=$(hostname)
+    local ipaddr=$(cat $LOGDIR/boot.log | grep IPADDR | cut -d\' -f2)
     frsh="$FAI_REMOTESH -l $LOGUSER ${SERVER}"
 
-
     if [ -z "$SERVER" ] ; then
 	echo "SERVER not defined. Can't change network boot configuration"
 	terror=2
@@ -199,7 +199,7 @@
 	    echo "WARNING: $frsh failed. Can't call fai-chboot on the install server."
 	else
 	    # remove pxe config, so host will use default and boot from local disk
-	    $frsh /usr/sbin/fai-chboot -r $hostname
+	    $frsh /usr/sbin/fai-chboot -r $ipaddr
 	fi
     fi
 }




More information about the Fai-commit mailing list