From: Mark Huang <mlhuang@cs.princeton.edu>
Date: Wed, 26 Oct 2005 15:26:15 +0000 (+0000)
Subject: for the old style boot server file, that contains multiple servers,
X-Git-Tag: planetlab-3_3-branch-point~29
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a6faf803e539104f581056932573cdbf3e10277e;p=bootmanager.git

for the old style boot server file, that contains multiple servers,
read only the first line
---

diff --git a/source/steps/InitializeBootManager.py b/source/steps/InitializeBootManager.py
index 076a637..97de995 100644
--- a/source/steps/InitializeBootManager.py
+++ b/source/steps/InitializeBootManager.py
@@ -58,7 +58,7 @@ def Run( vars, log ):
     # info in /usr/bootme; 3.x cds in /usr/boot
     if BOOT_CD_VERSION[0] == 2:
         try:
-            boot_server= file(V2X_BOOTCD_SERVER_FILE).read().strip()                
+            boot_server= file(V2X_BOOTCD_SERVER_FILE).readline().strip()                
         except IOError:
             raise BootManagerException, \
                   "It appears we are running on a v2.x boot cd, but could " \