mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame^] | 1 | #!/usr/bin/python |
| 2 | # |
| 3 | # Copyright 2007 Google Inc. Released under the GPL v2 |
| 4 | |
| 5 | """This module defines the Bootloader class. |
| 6 | |
| 7 | Bootloader: a program to boot Kernels on a Host. |
| 8 | """ |
| 9 | |
| 10 | __author__ = """mbligh@google.com (Martin J. Bligh), |
| 11 | poirier@google.com (Benjamin Poirier), |
| 12 | stutsman@google.com (Ryan Stutsman)""" |
| 13 | |
| 14 | |
| 15 | class Bootloader(object): |
| 16 | """This class represents a bootloader. |
| 17 | |
| 18 | It can be used to add a kernel to the list of kernels that can be |
| 19 | booted by a bootloader. It can also make sure that this kernel will |
| 20 | be the one chosen at next reboot. |
| 21 | |
| 22 | Implementation details: |
| 23 | This is an abstract class, leaf subclasses must implement the methods |
| 24 | listed here. You must not instantiate this class but should |
| 25 | instantiate one of those leaf subclasses.""" |
| 26 | |
| 27 | host = None |
| 28 | |
| 29 | def add_entry(self, name, image, initrd, root, options, default=True): |
| 30 | pass |
| 31 | |
| 32 | def remove_entry(self, name): |
| 33 | pass |