Minor problem with task_chboot

Andreas Jobs andreas.jobs at ruhr-uni-bochum.de
Wed Mar 15 09:47:13 CET 2006


Hi all,

Problem:
task_chboot does not disable the correct pxe configuration.

Description:
If you have more than one NIC, your hostname may not map to the adress
used during install. In my case (installing some Compaq Blade Servers)
the Installation uses eth0 but the "production" interface is eth2. So,
hostname resolves to the address bind to eth2. During task_chboot fai
does "fai_chboot -r $hostname" and quits with a file not found message.

Solution:
Use the address that was used during installation. My quick-and-dirty
patch currently is:

--- subroutines-linux.orig      2006-01-12 17:49:49.000000000 +0100
+++ subroutines-linux   2006-03-10 09:41:23.000000000 +0100
@@ -185,7 +185,8 @@

     local frsh
     local doexit=0
-    local hostname=$(hostname)
+    local hostname=$(cat $LOGDIR/boot.log | grep IPADDR | cut -d\' -f2)
+    [ -z "$hostname" ] && hostname=$(hostname)
     frsh="$FAI_REMOTESH -l $LOGUSER ${SERVER}"


Maybe there is a better (cleaner) solution.

I'd like to file a bug in BTS. Should I file it to "fai" or
"fai-client"?

Andreas

-- 
! Andreas Jobs                                 Network Operating Center !
!                                              Ruhr-Universitaet Bochum !
! The only way to clean a compromised system is to flatten and rebuild. !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060315/a4ab24d0/attachment.bin 


More information about the linux-fai mailing list