virt-manager/virtman-autorestart.diff
Charles Arnold 39bfc34504 - Update to virt-manager 0.8.5
* Improved save/restore support
  * Option to view and change disk cache mode
  * Configurable VNC keygrab sequence (Michal Novotny)
- Update to virtinst 0.500.4
  * New virt-install --console option for specifying virtio console 
    device
  * New virt-install --channel option for specifying guest 
    communication channel
  * New virt-install --boot option. Allows setting post-install boot
    order, direct kernel/initrd boot, and enabling boot device menu.
  * New virt-install --initrd-inject option, which enables 
    installation using a _local_ kickstart file (Colin Walters)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=37
2010-09-27 20:47:12 +00:00

44 lines
1.8 KiB
Diff

Index: virt-manager-0.8.5/src/virtManager/details.py
===================================================================
--- virt-manager-0.8.5.orig/src/virtManager/details.py
+++ virt-manager-0.8.5/src/virtManager/details.py
@@ -1397,8 +1397,15 @@ class vmmDetails(gobject.GObject):
self.vm.hotplug_both_mem,
(curmem, maxmem))
- # Boot device / Autostart
+ # Boot device
def config_boot_options_apply(self):
+ bootdevs = self.get_config_boot_devs()
+ return self._change_config_helper(self.vm.set_boot_device,
+ (bootdevs,))
+
+ # Autostart - See bnc#624250 - L3: virt-manager doesn't update
+ # "Autostart" setting in vm configuration correctly
+ def update_on_xend_start(self):
auto = self.window.get_widget("config-autostart")
if auto.get_property("sensitive"):
@@ -1407,11 +1414,6 @@ class vmmDetails(gobject.GObject):
except Exception, e:
self.err.show_err((_("Error changing autostart value: %s") %
str(e)), "".join(traceback.format_exc()))
- return False
-
- bootdevs = self.get_config_boot_devs()
- return self._change_config_helper(self.vm.set_boot_device,
- (bootdevs,))
# CDROM
def change_storage_media(self, dev_id_info, newpath, _type=None):
@@ -1570,6 +1572,9 @@ class vmmDetails(gobject.GObject):
else:
self.err.show_info(_("These changes will take effect after "
"the next guest reboot."))
+
+ self.update_on_xend_start()
+
return True
########################