This patch adds bootloader functionality to autoserv:

From: Benjamin Poirier <poirier@google.com>
Signed-off-by: Martin J. Bligh <mbligh@google.com>

* removed Lilo and Grub classes
* Bootloader uses boottool, boottool support brought in from autotest, get_title(), get_info() improved, add_kernel() has 'default' parameter to add an entry and make it the default one in one simple step
* Kernel has new methods to ease installation, get_version(), get_initrd_name() and get_image_name()
* DEBKernel changed to implement those method and call the host's bootloader during install()

Installing and booting .deb kernel now works.
Example usage:

rh= hosts.SSHHost("192.168.0.1")

print rh.run("uname -a").stdout

kernel= deb_kernel.DEBKernel()
kernel.get("/home/poirier/linux-2.6.22_2.6.22_amd64.deb")

kernel.install(rh)

rh.reboot()
rh.wait_up()

print rh.run("uname -a").stdout

Credit goes to Ryan for bringing in boottool support.



git-svn-id: http://test.kernel.org/svn/autotest/trunk@574 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/base_classes.py b/server/hosts/base_classes.py
index dac153a..4564fc1 100644
--- a/server/hosts/base_classes.py
+++ b/server/hosts/base_classes.py
@@ -19,7 +19,7 @@
 
 import time
 import textwrap
-
+import bootloader
 
 class Host(object):
 	"""This class represents a machine on which you can run programs.
@@ -36,6 +36,7 @@
 	
 	def __init__(self):
 		super(Host, self).__init__()
+		self.bootloader= bootloader.Bootloader(self)
 	
 	def run(self, command):
 		pass