summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2017-06-08 15:42:12 -0500
committerScott Moser <smoser@brickies.net>2017-07-25 13:56:10 -0400
commit0ef61b289472665f4e3059a24a8b9b91246f06ee (patch)
tree4ff0d8911a5ce87fbc00d46b8de728fc7774d4e5 /tools
parent85c984c3c74b0a8751698e20915b89756580b09f (diff)
downloadvyos-cloud-init-0ef61b289472665f4e3059a24a8b9b91246f06ee.tar.gz
vyos-cloud-init-0ef61b289472665f4e3059a24a8b9b91246f06ee.zip
locale: Do not re-run locale-gen if provided locale is system default.
If the system configure default in /etc/default/locale is set to the same value that is provided for cloud-init's "locale" setting, then do not re-run locale-gen. This allows images built with a locale already generated to not re-run locale-gen (which can be very heavy). Also here is a fix to invoke update-locale correctly and remove the internal writing of /etc/default/locale. We were calling update-locale <locale> This ends up having no affect. The more correct invocation is: update-locale LANG=<locale> Also added some support here should we ever want to change setting LANG to setting LC_ALL (or any other key). Lastly, a test change to allow us to use assert_not_called from mock. Versions of mock in CentOS 6 do not have assert_not_called.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions