- Add opensuse 13 as a host default for VM creation
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=122
This commit is contained in:
parent
a7efa17af2
commit
67c83dfe33
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 23 15:37:06 MDT 2013 - carnold@suse.com
|
||||||
|
|
||||||
|
- Add opensuse 13 as a host default for VM creation
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 22 12:25:16 MDT 2013 - carnold@suse.com
|
Mon Jul 22 12:25:16 MDT 2013 - carnold@suse.com
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ Index: virt-manager-0.9.5/src/virtManager/create.py
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- virt-manager-0.9.5.orig/src/virtManager/create.py
|
--- virt-manager-0.9.5.orig/src/virtManager/create.py
|
||||||
+++ virt-manager-0.9.5/src/virtManager/create.py
|
+++ virt-manager-0.9.5/src/virtManager/create.py
|
||||||
@@ -1248,12 +1248,26 @@ class vmmCreate(vmmGObjectUI):
|
@@ -1253,12 +1253,26 @@ class vmmCreate(vmmGObjectUI):
|
||||||
variant = self.widget("install-os-version")
|
variant = self.widget("install-os-version")
|
||||||
variant.set_active(0)
|
variant.set_active(0)
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ Index: virt-manager-0.9.5/src/virtManager/create.py
|
|||||||
# Get previous
|
# Get previous
|
||||||
os_type_list = self.widget("install-os-type")
|
os_type_list = self.widget("install-os-type")
|
||||||
os_type_model = os_type_list.get_model()
|
os_type_model = os_type_list.get_model()
|
||||||
@@ -2116,6 +2130,7 @@ class vmmCreate(vmmGObjectUI):
|
@@ -2121,6 +2135,7 @@ class vmmCreate(vmmGObjectUI):
|
||||||
dl = self.set_os_val(self.widget("install-os-type"), distro)
|
dl = self.set_os_val(self.widget("install-os-type"), distro)
|
||||||
vl = self.set_os_val(self.widget("install-os-version"), ver)
|
vl = self.set_os_val(self.widget("install-os-version"), ver)
|
||||||
self.set_distro_labels(dl, vl)
|
self.set_distro_labels(dl, vl)
|
||||||
|
@ -11,7 +11,7 @@ Index: virt-manager-0.9.5/src/virtManager/create.py
|
|||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
@@ -1159,6 +1161,47 @@ class vmmCreate(vmmGObjectUI):
|
@@ -1159,6 +1161,51 @@ class vmmCreate(vmmGObjectUI):
|
||||||
return
|
return
|
||||||
self.start_detection(forward=forward)
|
self.start_detection(forward=forward)
|
||||||
|
|
||||||
@ -22,10 +22,14 @@ Index: virt-manager-0.9.5/src/virtManager/create.py
|
|||||||
+ lines = f.readlines()
|
+ lines = f.readlines()
|
||||||
+ f.close()
|
+ f.close()
|
||||||
+ for line in lines:
|
+ for line in lines:
|
||||||
+ if "openSUSE" in line:
|
+ if "openSUSE 13" in line:
|
||||||
|
+ return 'linux', 'opensuse13'
|
||||||
|
+ if "openSUSE 12" in line:
|
||||||
+ return 'linux', 'opensuse12'
|
+ return 'linux', 'opensuse12'
|
||||||
+ if "SUSE Linux Enterprise Server" in line:
|
+ if "SUSE Linux Enterprise Server 11" in line:
|
||||||
+ return 'linux', 'sles11'
|
+ return 'linux', 'sles11'
|
||||||
|
+ if "SUSE Linux Enterprise Desktop 11" in line:
|
||||||
|
+ return 'linux', 'sled11'
|
||||||
+ if "Fedora" in line:
|
+ if "Fedora" in line:
|
||||||
+ return 'linux', 'fedora17'
|
+ return 'linux', 'fedora17'
|
||||||
+ if "Red Hat Enterprise Linux Server" in line:
|
+ if "Red Hat Enterprise Linux Server" in line:
|
||||||
@ -59,7 +63,7 @@ Index: virt-manager-0.9.5/src/virtManager/create.py
|
|||||||
def toggle_detect_os(self, src):
|
def toggle_detect_os(self, src):
|
||||||
dodetect = src.get_active()
|
dodetect = src.get_active()
|
||||||
|
|
||||||
@@ -1174,6 +1217,7 @@ class vmmCreate(vmmGObjectUI):
|
@@ -1174,6 +1221,7 @@ class vmmCreate(vmmGObjectUI):
|
||||||
self.widget("install-os-version-label").hide()
|
self.widget("install-os-version-label").hide()
|
||||||
self.widget("install-os-type").show()
|
self.widget("install-os-type").show()
|
||||||
self.widget("install-os-version").show()
|
self.widget("install-os-version").show()
|
||||||
|
Loading…
Reference in New Issue
Block a user