virt-manager/virtinst-pvgrub2-bootloader.patch
Charles Arnold d0f9c30916 - Update to virt-manager version 1.0.1
virt-manager-1.0.1.tar.bz2
  * virt-install/virt-xml: New --memorybacking option (Chen Hanxiao)
  * virt-install/virt-xml: New --memtune option (Chen Hanxiao)
  * virt-manager: UI for LXC <idmap> (Chen Hanxiao)
  * virt-manager: gsettings key to disable keygrab (Kjö Hansi Glaz)
  * virt-manager: Show domain state reason in the UI (Giuseppe Scrivano)
  * Fix a number of bugs found since the 1.0.0 release
- Dropped 35 timestamp named patches now contained in new tarball

- bnc#869165 - virt-manager: add connection - missing avahi
  virt-manager.spec
- bnc#863821 - Xen unable to boot paravirtualized VMs installed
  with btrfs
  virtinst-pvgrub2-bootloader.patch
- Switch out redhat defaults for suse defaults
  virtman-stable-os-support.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=155
2014-03-24 15:05:15 +00:00

32 lines
1.3 KiB
Diff

Index: virt-manager-1.0.1/virtinst/guest.py
===================================================================
--- virt-manager-1.0.1.orig/virtinst/guest.py
+++ virt-manager-1.0.1/virtinst/guest.py
@@ -331,7 +331,15 @@ class Guest(XMLBuilder):
this.)
@type disk_boot: C{bool}
"""
- osblob_install = install and not disk_boot
+ boot_pvgrub2 = False
+ os_ver = self._get_os_variant()
+ if install == False and (os_ver == "sles12" or os_ver == "sled12"):
+ boot_pvgrub2 = True
+ self.installer._install_kernel = "/usr/lib/grub2/x86_64-xen/grub.xen"
+ self.installer._install_initrd = None
+ self.installer.extraargs = None
+ logging.info("Using grub.xen to boot guest")
+ osblob_install = (install or boot_pvgrub2) and not disk_boot
if osblob_install and not self.installer.has_install_phase():
return None
@@ -348,7 +356,8 @@ class Guest(XMLBuilder):
if (not install and
self.os.is_xenpv() and
not self.os.kernel):
- self.bootloader = "/usr/bin/pygrub"
+ if boot_pvgrub2 is False:
+ self.bootloader = "/usr/bin/pygrub"
self.os.clear()
return self.get_xml_config()