Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
virt-manager.3850
virtman-autoyast-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtman-autoyast-support.patch of Package virt-manager.3850
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 @@ -1257,11 +1257,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() @@ -1626,7 +1649,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 @@ -2069,6 +2095,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>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor