78a6564ed4
virt-manager-1.2.1.tar.bz2 * Bugfix release * Fix connecting to older libvirt versions (Michał Kępień) * Fix connecting to VM console with non-IP hostname (Giuseppe Scrivano) * Fix addhardware/create wizard errors when a nodedev disappears * Fix adding a second cdrom via customize dialog - Dropped tarball and patches virt-manager-1.2.0.tar.bz2 848123e6-fix-memory-stats-for-shutoff-VM.patch ebcb7c06-fix-exception-when-the-address-is-not-an-IP.patch c4d26d16-fix-VM-polling-on-old-libvirt.patch ac2be796-do-not-throw-exception-if-volume-or-pool-dont-exist.patch 88e18c86-fix-sending-net-removed-signal.patch fbdf574c-fix-shortcut-key-for-USB-redir-dev-type.patch 2c1e482b-fix--show-host-summary-error-windows-flooding.patch 4b5c836a-read-start-mode-from-inactive-conf-XML.patch 776c1d97-fix-changing-USB-device-model.patch bbc4f83b-enable-qemu_ga-for-sles-11-sp4-and-newer.patch f8af2e6b-verify-HYPER-V-support-after-customization.patch 9ea3fcd1-add-classes-for-SUSE-distros.patch 23f262ec-fetch-URL-media-from-content-file-for-suse-distros.patch 5618fa4c-add-support-for-detecting-os-variants-of-suse-distros.patch 9b99eff7-add-opensuse-13.x-tests.patch f5a13510-clone-dont-use-separator-when-disk-under-root.patch - Upstream support for suse distros 9ea3fcd1-add-classes-for-SUSE-distros.patch 23f262ec-fetch-URL-media-from-content-file-for-suse-distros.patch 5618fa4c-add-support-for-detecting-os-variants-of-suse-distros.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=237
75 lines
3.5 KiB
Diff
75 lines
3.5 KiB
Diff
Enhancement to switch the label from 'Kickstart' to 'Autoyast' when
|
|
a suse distro is selected.
|
|
Index: virt-manager-1.2.1/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.2.1.orig/virtManager/create.py
|
|
+++ virt-manager-1.2.1/virtManager/create.py
|
|
@@ -1256,11 +1256,34 @@ class vmmCreate(vmmGObjectUI):
|
|
self.populate_os_type_model()
|
|
return
|
|
|
|
+ def _update_kickstart_label(self):
|
|
+ # Update label based on os version selected to either kickstart or autoyast
|
|
+ combo = self.widget("install-os-version")
|
|
+ if combo.get_active() != -1:
|
|
+ tree_iter = combo.get_active_iter()
|
|
+ if tree_iter != None:
|
|
+ model = combo.get_model()
|
|
+ unused, os_name = model[tree_iter][:2]
|
|
+ else:
|
|
+ entry = combo.get_child()
|
|
+ os_name = entry.get_text()
|
|
+ if os_name:
|
|
+ os_name = os_name.lower()
|
|
+ label = self.widget("kickstart-url-label")
|
|
+ if label and os_name:
|
|
+ if os_name.startswith('opensuse') or os_name.startswith('suse') or os_name.startswith('novell'):
|
|
+ label.set_text("AutoYaST URL:")
|
|
+ else:
|
|
+ label.set_text("Kickstart URL:")
|
|
+ label.show()
|
|
+
|
|
def change_os_version(self, box):
|
|
show_all = uiutil.get_list_selection(box, column=3)
|
|
if not show_all:
|
|
return
|
|
|
|
+ self._update_kickstart_label()
|
|
+
|
|
# 'show all OS' was clicked
|
|
# Get previous type to reselect it later
|
|
type_row = self._selected_os_row()
|
|
@@ -1625,7 +1648,10 @@ class vmmCreate(vmmGObjectUI):
|
|
if extra:
|
|
extraargs += extra
|
|
if ks:
|
|
- extraargs += " ks=%s" % ks
|
|
+ if variant.startswith('opensuse') or variant.startswith('sle') or variant.startswith('oes'):
|
|
+ extraargs += " autoyast=%s" % ks
|
|
+ else:
|
|
+ extraargs += " ks=%s" % ks
|
|
|
|
if extraargs:
|
|
self.guest.installer.extraargs = extraargs
|
|
@@ -2068,6 +2094,7 @@ class vmmCreate(vmmGObjectUI):
|
|
dl = self.set_os_val(self.widget("install-os-type"), distro_type)
|
|
vl = self.set_os_val(self.widget("install-os-version"), distro_var)
|
|
self.set_distro_labels(dl, vl)
|
|
+ self._update_kickstart_label()
|
|
|
|
def check_detection(self, idx, forward):
|
|
results = None
|
|
Index: virt-manager-1.2.1/ui/create.ui
|
|
===================================================================
|
|
--- virt-manager-1.2.1.orig/ui/create.ui
|
|
+++ virt-manager-1.2.1/ui/create.ui
|
|
@@ -843,7 +843,7 @@ bar</property>
|
|
<property name="column_spacing">6</property>
|
|
<property name="row_spacing">4</property>
|
|
<child>
|
|
- <object class="GtkLabel" id="label25">
|
|
+ <object class="GtkLabel" id="kickstart-url-label">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="label" translatable="yes">Kickstart URL:</property>
|