[26832] in Source-Commits
/svn/athena r25781 - trunk/debathena/scripts/installer/pxe/stage1/debathena
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Oct 18 15:29:28 2012
Date: Thu, 18 Oct 2012 15:29:21 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201210181929.q9IJTLSs028187@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jdreed
Date: 2012-10-18 15:29:21 -0400 (Thu, 18 Oct 2012)
New Revision: 25781
Modified:
trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh
Log:
Pick the first non-loopback interface, not all the non-loopback interfaces
Modified: trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh
===================================================================
--- trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh 2012-10-03 16:34:50 UTC (rev 25780)
+++ trunk/debathena/scripts/installer/pxe/stage1/debathena/installer.sh 2012-10-18 19:29:21 UTC (rev 25781)
@@ -125,7 +125,9 @@
# also fails, as the DHCP values override it.
echo "Killing dhcp client."
killall dhclient
- ETH0="$(ip -o link show | grep -v loopback | cut -d: -f 2 | tr -d ' ')"
+ echo -n "Determining which interface to use... "
+ ETH0="$(ip -o link show | grep -v loopback | cut -d: -f 2 | tr -d ' ' | head -1)"
+ echo "$ETH0"
echo "Running: ip addr flush dev $ETH0"
ip addr flush dev $ETH0
echo "Running: ip addr add $IPADDR/$maskbits broadcast $bc dev $ETH0"
@@ -396,6 +398,9 @@
acpi="reboot=pci"
fi
+# TODO: Pass the actual interface we're using, not "auto"
+# Or decide that we only support the first interface, and determine
+# the name of it using the same method in stage2
kargs="$knetinfo $kbdcode $acpi locale=en_US interface=auto \
url=http://18.9.60.73/installer/$distro/debathena.preseed \
da/pxe=$pxetype da/i=$installertype da/m=$mirrorsite \