7158052 Installation fails due to installboot returned unexpected exit status 4
authorNiall Power <niall.power@oracle.com>
Sun, 01 Apr 2012 22:57:14 -0700
changeset 1627 53961e1ba8cb
parent 1625 d13be924336e
child 1628 27390c5e08de
7158052 Installation fails due to installboot returned unexpected exit status 4
usr/src/lib/install_boot/boot.py
--- a/usr/src/lib/install_boot/boot.py	Fri Mar 30 00:15:37 2012 -0600
+++ b/usr/src/lib/install_boot/boot.py	Sun Apr 01 22:57:14 2012 -0700
@@ -831,8 +831,11 @@
             # Danger Will Robinson!!
             self.logger.info("Installing boot loader to devices: %s" \
                              % str(boot_rdevs))
-            self.config.commit_boot_config(
-                boot_devices=boot_rdevs)
+            # NOTE: Use the force (haha) option to force installation of the
+            # boot loader onto a disk that may have a versioned boot loader
+            # already installed.
+            self.config.commit_boot_config(boot_devices=boot_rdevs,
+                                           force=True) 
 
             self.logger.info("Setting boot devices in firmware")
             self._set_firmware_boot_device(dry_run)