Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Setting locale with cloud-init #354

Open
kinafu opened this issue Mar 26, 2020 · 0 comments
Open

Setting locale with cloud-init #354

kinafu opened this issue Mar 26, 2020 · 0 comments

Comments

@kinafu
Copy link

kinafu commented Mar 26, 2020

When a fresh hypriot installation is being initialized with a user-data file by cloud-init, setting the locale fails. I am using a Raspberry Pi 4.

# cat user-data
locale: "de_DE.UTF-8"

invokes (according to the cloud-init log file) the following command
update-locale --local-file=/etc/default/locale LANG=de_DE.UTF-8

When i execute that command on my running hypriot it says:

$ sudo update-locale LANG=en_CA.UTF-8
*** update-locale: Error: invalid locale settings:  LANG=en_CA.UTF-8

When you leave away the part LANG= it works.
But in the example in the man-page explicitly states the example to use the LANG=en_US syntax.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant