7162251 grub-setup fails during build of DC ISO images on RE x86 build system.
authorNiall Power <niall.power@oracle.com>
Wed, 18 Apr 2012 14:32:29 +1000
changeset 1637 363448d5d44a
parent 1636 40142742ced2
child 1638 36e83f910204
7162251 grub-setup fails during build of DC ISO images on RE x86 build system.
usr/src/lib/install_boot/boot.py
--- a/usr/src/lib/install_boot/boot.py	Sun Apr 15 23:31:35 2012 +0200
+++ b/usr/src/lib/install_boot/boot.py	Wed Apr 18 14:32:29 2012 +1000
@@ -1038,7 +1038,9 @@
                 self.logger.debug("Installing GRUB2 on %s", lofi_rdev)
                 bios_grub_dir = os.path.join(self.pkg_img_path,
                                              "boot/grub/i386-pc")
-                cmd = [GRUB_SETUP, "-d", bios_grub_dir, "-M", lofi_rdev]
+                cmd = [GRUB_SETUP, "-d", bios_grub_dir,
+                       "--root-device=(hostdisk/" + lofi_rdev + ")",
+                       "-M", lofi_rdev]
                 run(cmd)
 
                 # Write the first 1MB of the lofi image out to file and store