Package: fai-client Version: 3.4.2 Tags: patch
netdevices_up from get-boot-info contains all netdevices listed by ip link, and not only the ones thats actually up. A fix would be to add a grep UP to the row that detects interfaces, as sugested in patch. -- Anton Lundin +46702-161604
--- lib/get-boot-info.orig 2010-10-18 14:23:21.904952245 +0200 +++ lib/get-boot-info 2010-10-18 14:23:37.904952734 +0200 @@ -41,7 +41,7 @@ netdevice_info() { # devices that are running - netdevices_up=$(ip link | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq) + netdevices_up=$(ip link | grep UP | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq) # netdevices is the list of ethernet devices which will be used for bootpc (maybe dhcp) # if not defined, use boot messages to determine network devices [ -n "$netdevices" ] || netdevices=$netdevices_up
pgpvJQO0jsYku.pgp
Description: PGP signature