Support OpenSolaris 2009.06
# HG changeset patch
# User John Levon <john.levon@sun.com> # Date 1237257954 25200 # Node ID 7e7e8034601323d1b4f21314e0ccf520e25d51b6 # Parent 202f8b4f8189e52a75d16930244274bda02c4af0 Support OpenSolaris 2009.06 This has unfortunately moved the location of the boot archive for SPARC support. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/virtinst/OSDistro.py b/virtinst/OSDistro.py --- a/virtinst/OSDistro.py +++ b/virtinst/OSDistro.py @@ -1040,7 +1040,7 @@ class OpenSolarisDistro(SunDistro): os_variant = "opensolaris" kernelpath = "platform/i86xpv/kernel/unix" - initrdpath = "boot/x86.microroot" + initrdpaths = [ "boot/boot_archive", "boot/x86.microroot" ] def isValidStore(self, fetcher, progresscb): if fetcher.hasFile(self.kernelpath): @@ -1076,12 +1076,16 @@ class OpenSolarisDistro(SunDistro): args = "/" + self.kernelpath + self.install_args(guest) try: - initrd = fetcher.acquireFile(self.initrdpath, progresscb) + initrd = fetcher.acquireFile(self.initrdpaths[0], progresscb) return (kernel, initrd, args) - except: - os.unlink(kernel) - raise RuntimeError(_("OpenSolaris microroot not found at %s") % - self.initrdpath) + except Exception, e: + try: + initrd = fetcher.acquireFile(self.initrdpaths[1], progresscb) + return (kernel, initrd, args) + except: + os.unlink(kernel) + raise Exception("No OpenSolaris boot archive found: %s " % e) + # NetWare 6 PV class NetWareDistro(Distro): _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
Support OpenSolaris 2009.06
John Levon wrote:
> # HG changeset patch > # User John Levon <john.levon@sun.com> > # Date 1237257954 25200 > # Node ID 7e7e8034601323d1b4f21314e0ccf520e25d51b6 > # Parent 202f8b4f8189e52a75d16930244274bda02c4af0 > Support OpenSolaris 2009.06 > > This has unfortunately moved the location of the boot archive for SPARC > support. > > Signed-off-by: John Levon <john.levon@sun.com> > Thanks, applied. - Cole _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
| All times are GMT. The time now is 06:38 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.