be a bit smarter about the locale that gets written to the cloud init config
This commit is contained in:
parent
d39c52e4c4
commit
0f1b1646a9
|
@ -164,11 +164,14 @@ class SubiquityModel:
|
|||
return groups
|
||||
|
||||
def _cloud_init_config(self):
|
||||
locale = self.locale.selected_language
|
||||
if '.' not in locale and '_' in locale:
|
||||
locale += '.UTF-8'
|
||||
config = {
|
||||
'growpart': {
|
||||
'mode': 'off',
|
||||
},
|
||||
'locale': self.locale.selected_language + '.UTF-8',
|
||||
'locale': locale,
|
||||
'resize_rootfs': False,
|
||||
}
|
||||
if self.identity.hostname is not None:
|
||||
|
|
Loading…
Reference in New Issue