1. VectorLinux Core
  2. vinstall

Commits

M0E-lnx  committed 0a7f8f3

Reorder bootloader installation sequence

  • Participants
  • Parent commits eac2f11
  • Branches master

Comments (0)

Files changed (1)

File vinstall/controller/bootloader.py

View file
             bl = bootloader.Lilo(target)
             for system in bootloader.OperatingSystem.all():
                 bl.add_os(system)
+	    sequence = (bl.backup_config, bl.write_config, bl.install)
         elif bloader == "Grub2":
             bl = bootloader.Grub2(target)
+	    sequence = (bl.backup_config, bl.install, bl.write_config)
         else:
             return
 
         with utils.Chroot("/mnt/TARGET"):
-            bl.backup_config()
-            bl.write_config()
-            bl.install()
+	    for meth in sequence:
+		meth()
+#            bl.backup_config()
+#            bl.write_config()
+#            bl.install()
 
     def set_bind_mounts(self):
         """Bind mount some paths into the target.