Package: fai-client
Version: 3.2.14
Severity: normal
When machines with multiple network interfaces are installed (lenny clients
from a lenny server) some problems occur (see the discussion in this
thread:
https://lists.uni-koeln.de/pipermail/linux-fai/2008-December/006445.html).
One problem is a typo in /usr/lib/fai/get-boot-info which is the reason why
incorrect values for variables like IPADDR BROADCAST GATEWAYS NETMASK are
written to $LOGDIR/boot.log .
These entries are often used lateron, for an example see
/usr/share/doc/fai-doc/examples/simple/scripts/FAIBASE/30-interface .
The attached patch fixes this bug.
Regards, Ralf
--- get-boot-info 2008-12-17 11:01:18.000000000 +0100
+++ get-boot-info.new 2008-12-17 14:53:03.000000000 +0100
@@ -123,7 +123,7 @@
boot=0
# when using live-initramfs
-if [ -d /var/log/live.log ]; then
+if [ -f /var/log/live.log ]; then
grep IP-Config /var/log/live.log | grep -q "DHCP" && get_dhcp_info
grep IP-Config /var/log/live.log | grep -q "BOOTP" && get_bootp_info
else