Package: fai
Version: trunk
In trunk/lib/get-boot-info the variable called netdevices is assumed to
be equal to netdevices_up when written to bootlog. From what I
understand, this should not be the case. Previously in the code, if
netdevices was not already defined then it was set equal to
netdevices_up. But if netdevices was already defined then it was left
as is.
By leaving netdevices untuched when previously defined, it allows me to
define the netdevices variable in a confdir.hostname.source hook. This
allows me to avoid having unwanted DHCP servers, on my non primary
network interfaces, answer the request for network information during
the confdir stage of a FAI install.
By applying the following patch, my install works well. And fixes what
I think is an error in the code.
I'm using FAI to install a Ubuntu Lucid system.
Thanks for the help. Deric
-------------patch info here-------------
$ LC_ALL=C TZ=UTC0 diff -Naur get-boot-info get-boot-info.proposed
--- get-boot-info 2011-02-09 15:32:17.503749000 +0000
+++ get-boot-info.proposed 2011-02-09 16:06:35.764093000 +0000
@@ -55,7 +55,7 @@
cat > $bootlog <<-EOF
netdevices_all="$netdevices_all"
netdevices_up="$netdevices_up"
- netdevices="$netdevices_up"
+ netdevices="$netdevices"
EOF
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org