Commits

Moises Henriquez  committed eac913f

Added TUI entry to LILO installation for boot menu

  • Participants
  • Parent commits 3da61c5

Comments (0)

Files changed (1)

File vinstall/controller/bootloader.py

         lilo = bootloader.Lilo(target)
         for system in bootloader.OperatingSystem.all():
             lilo.add_os(system)
+	    if system.root == self.config["target_device"]:
+	        # Add this same entry with a modified APPEND line for TUI"
+		LOG.debug("Adding TUI entry to LILO based on entry for %s"% target)
+		tuientry = system
+		tuientry.appendline = 'append = "ro vga=normal 2"'
+		tuientry.initrd = None
+		tuientry.label = "%s-tui"% system.label
+		lilo.add_os(tuientry)
+
         with utils.Chroot("/mnt/TARGET"):
             lilo.backup_config()
             lilo.write_config()