diff options
Diffstat (limited to 'tools/pygrub/src/ExtLinuxConf.py')
-rw-r--r-- | tools/pygrub/src/ExtLinuxConf.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pygrub/src/ExtLinuxConf.py b/tools/pygrub/src/ExtLinuxConf.py index 99f0990a90..6be65cef1d 100644 --- a/tools/pygrub/src/ExtLinuxConf.py +++ b/tools/pygrub/src/ExtLinuxConf.py @@ -119,6 +119,12 @@ class ExtLinuxConfigFile(object): if fn is not None: self.parse() + def new_image(self, title, lines): + # ExtLinuxImage 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 ExtLinuxImage(lines, "") + def parse(self, buf = None): if buf is None: if self.filename is None: |