Commits

Rodrigo Bistolfi committed de249d6

automatic.py cleanup

  • Participants
  • Parent commits 2557d17

Comments (0)

Files changed (1)

File vinstall/controller/automatic.py

             partitioner.create_partition_table()
         else:
             partitioner.delete_all_partitions()
-        
+
         root_size = disk_size - swap_size
         partitioner.add_partition(size=root_size, units='MiB')
-        # Subtract 1MB from the swap size to let pyparted align the partitions right.
         partitioner.add_partition(size=swap_size-1, units='MiB')
         partitioner.write_changes()
 
 
         proot = "%s%s" % (disk.path(), 1)
         pswap = "%s%s" % (disk.path(), 2)
-        # make sure our partitions are not mounted before we attempt to
-        # format them.  Especially the target's /
         utils.umount('/mnt/TARGET')
         utils.format_partition(proot, self.ROOT_FS)
         utils.format_partition(pswap, 'swap')
 
     def install_kernels(self):
         """Copy the kernels from the initrd to the target"""
-        # kernel is in the ISO as 'sata' in isolinux/kernel/
-        # Represented in VINSTALL.INI as "sata=version"
-
         src = self.config["install_media"]
         kver = src.config.get("kernels", "sata").replace("\"","")
         ksrc = os.path.join('/mnt', 'SOURCE', 'isolinux','kernel', 'sata')