equal
deleted
inserted
replaced
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 |