Commits

Moises Henriquez committed e8b4ffe

bootloader backend add some debug logging and disable processing append line for found linux operating systems

Comments (0)

Files changed (1)

vinstall/backend/bootloader.py

 from vinstall.backend import utils, media
 from vinstall.backend import sp
 import unittest
-
+from vinstall.core import log
 
 LILO = object()
 GRUB = object()
 GRUB2 = object()
 
+LOG = log.get_logger("bootloader_backend")
+
 class LiloDotConfEntry(object):
     """Dummy wrapper for reading a lilo.conf.  Has absolutely no use at all.
     The only reason it exists is to do some unittesting"""
 	    if system.initrd:
 		self.buffer.append("%s initrd = %s"% ( tab, system.initrd))
 	self.buffer.append("%s root = %s" % (tab, system.root))
-        if system.appendline:
-	    self.buffer.append('%s append = "%s"'% (tab, system.appendline))
+#        if system.appendline:
+#	    self.buffer.append('%s append = "%s"'% (tab, system.appendline))
+# XX : ^^ The append line is very delicate and needs some processing.
+# XX :
         self.buffer.append("%s read-only" % tab)
         self.buffer.append("# --")
 
         """
         self.buffer.append("# -- %s on %s --" % (system.long_desc, system.root))
         self.buffer.append("other = %s" % system.root)
-        self.buffer.append("label = %s" % system.label)
-        self.buffer.append("table = %s" % system.root[:-1])
+        self.buffer.append("%s label = %s" % (tab, system.label))
+        self.buffer.append("%s table = %s" % (tab, system.root[:-1]))
 	self.operating_systems.append(system)
         
     def set_default_os(self, system):
             root, long_desc, short_desc, os_type = \
                     [ s.strip() for s in i.split(":") ]
             operating_system = cls()
+	    LOG.debug("Found %s on %s"% (os_type, root))
             if short_desc.startswith("Vector"):
                 short_desc = "VectorLinux - %s"% root.split("/")[-1]
             operating_system.label = short_desc