blob: eeaa5fb499eab4c404064e9d24d5b2e08c6328cb [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001#!/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),
11poirier@google.com (Benjamin Poirier),
12stutsman@google.com (Ryan Stutsman)"""
13
14
15class 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