be a bit smarter about the locale that gets written to the cloud init config

This commit is contained in:
Michael Hudson-Doyle 2021-02-12 15:01:52 +13:00
parent d39c52e4c4
commit 0f1b1646a9
1 changed files with 4 additions and 1 deletions

View File

@ -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: