[Kimchi-devel] [PATCH][Kimchi] Add support to recognize latest CentOS version
Rodrigo Trujillo
rodrigo.trujillo at linux.vnet.ibm.com
Tue Mar 29 14:07:21 UTC 2016
Latest CentOS (7) has a different identifier and Kimchi is not able to
recognize the version and the os name in templates and in the guest.
This patch changes the regular expression in order to cover latest
version.
Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
---
isoinfo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/isoinfo.py b/isoinfo.py
index 3cd4daf..4cb0209 100644
--- a/isoinfo.py
+++ b/isoinfo.py
@@ -46,7 +46,7 @@ iso_dir = [
('openbsd', lambda m: m.group(2),
('OpenBSD/(i386|amd64) (\d+\.\d+) Install CD')),
('centos', lambda m: m.group(1),
- ('CentOS_(\d+\.\d+)_Final')),
+ ('CentOS[ _](\d+\.?\d?)[ _].+')),
('windows', '2000',
('W2AFPP|SP1AFPP|SP2AFPP|YRMAFPP|ZRMAFPP|W2AOEM|SP1AOEM|SP2AOEM' +
'|YRMAOEM|ZRMAOEM|W2ASEL|SP2ASEL|W2SFPP|SP1SFPP|SP2SFPP|YRMSFPP' +
--
2.1.0
More information about the Kimchi-devel
mailing list