usr/src/lib/install_target/controller.py
changeset 1376 1586eba25902
parent 1370 0e49021cc774
child 1377 51a448c0a1b5
equal deleted inserted replaced
1375:a32740f8fe7d 1376:1586eba25902
   540 
   540 
   541         # force a VTOC label and update the disk's geometry and dev_size
   541         # force a VTOC label and update the disk's geometry and dev_size
   542         if disk.label == "VTOC" and not self._dry_run:
   542         if disk.label == "VTOC" and not self._dry_run:
   543             # look for this disk in the DISCOVERED target tree to see if the
   543             # look for this disk in the DISCOVERED target tree to see if the
   544             # label changed from EFI to VTOC
   544             # label changed from EFI to VTOC
   545             for discovered_disk in self._discovered_disks:
   545             for discovered_disk in self.discovered_disks:
   546                 if disk.ctd == discovered_disk.ctd:
   546                 if disk.ctd == discovered_disk.ctd:
   547                     if discovered_disk.label == "GPT":
   547                     if discovered_disk.label == "GPT":
   548                         # we need to reset the label
   548                         # we need to reset the label
   549                         disk._set_vtoc_label_and_geometry(self._dry_run)
   549                         disk._set_vtoc_label_and_geometry(self._dry_run)
   550 
   550