Blame SOURCES/cloud-init-centos-hostnamefix.patch
|
Karanbir Singh |
87012b |
diff -uNr cloud-init-0.7.5__orig/cloudinit/distros/rhel.py cloud-init-0.7.5/cloudinit/distros/rhel.py
|
|
Karanbir Singh |
87012b |
--- cloud-init-0.7.5__orig/cloudinit/distros/rhel.py 2014-04-01 19:26:07.000000000 +0100
|
|
Karanbir Singh |
87012b |
+++ cloud-init-0.7.5/cloudinit/distros/rhel.py 2014-08-13 01:45:26.485837406 +0100
|
|
Karanbir Singh |
87012b |
@@ -103,6 +103,7 @@
|
|
Karanbir Singh |
87012b |
(dist, vers) = util.system_info()['dist'][:2]
|
|
Karanbir Singh |
87012b |
major = (int)(vers.split('.')[0])
|
|
Karanbir Singh |
87012b |
return ((dist.startswith('Red Hat Enterprise Linux') and major >= 7)
|
|
Karanbir Singh |
87012b |
+ or (dist.startswith('CentOS Linux') and major >= 7)
|
|
Karanbir Singh |
87012b |
or (dist.startswith('Fedora') and major >= 18))
|
|
Karanbir Singh |
87012b |
|
|
Karanbir Singh |
87012b |
def apply_locale(self, locale, out_fn=None):
|