aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/src/LiloConf.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pygrub/src/LiloConf.py')
-rw-r--r--tools/pygrub/src/LiloConf.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pygrub/src/LiloConf.py b/tools/pygrub/src/LiloConf.py
index 8f029571cf..9858ae26f5 100644
--- a/tools/pygrub/src/LiloConf.py
+++ b/tools/pygrub/src/LiloConf.py
@@ -147,6 +147,12 @@ class LiloConfigFile(object):
def add_image(self, image):
self.images.append(image)
+ def new_image(self, title, lines):
+ # LiloImage constructor doesn't have title but since path
+ # is being used by get_{kernel|initrd} functions we pass
+ # empty string rather than None (see lines above)
+ return LiloImage(lines, "")
+
def _get_default(self):
for i in range(len(self.images)):
if self.images[i].title == self._default: