7180918 t4-2 TI install crash with unhandled exception if I try to install with gpt partition
authorDrew Fisher <drew.fisher@oracle.com>
Mon, 02 Jul 2012 08:21:34 -0700
changeset 1740 d7def37a0301
parent 1739 11d9283b07f7
child 1741 d79b92c1bded
7180918 t4-2 TI install crash with unhandled exception if I try to install with gpt partition
usr/src/lib/install_target/physical.py
--- a/usr/src/lib/install_target/physical.py	Sat Jun 30 00:24:39 2012 -0700
+++ b/usr/src/lib/install_target/physical.py	Mon Jul 02 08:21:34 2012 -0700
@@ -1971,7 +1971,8 @@
               the returned copy of donor.
         """
         if self.kernel_arch == "sparc":
-            return None, None
+            # do not modify the donor partition
+            return None, donor
 
         if self.label == "VTOC":
             raise ValueError("Can't add EFI_SYSTEM/EFI_BIOS_BOOT" \
@@ -2076,7 +2077,7 @@
         """
         if self.label == "VTOC":
             raise ValueError("Can't add Solaris reserved partition " \
-                               "to a VTOC labeled disk")
+                             "to a VTOC labeled disk")
 
         gparts = self.get_children(class_type=GPTPartition)