image-bootstrap icon indicating copy to clipboard operation
image-bootstrap copied to clipboard

Arch image cloud-init generate a wrong locale.gen file

Open nplanel opened this issue 9 years ago • 6 comments

cloud-init generate not correctly /etc/locale.gen, like this :

# Created by cloud-init v. 0.7.6 on Thu, 03 Mar 2016 06:25:03 +0000
LANG=en_US.UTF-8

This should be

en_US.UTF-8 UTF-8

LANG=en_US.UTF-8 is valid only for /etc/locale.conf I think the confusion comes from here.

nplanel avatar Mar 03 '16 06:03 nplanel

Hi!

The bug is known upstream and in Arch for a long time. It looks like neither of these parties cares enough (and the package and project seem to lack attention in general, see e.g. open Arch bugs on cloud-init). ~~I'm not sure if it's a good idea to patch cloud-init from within image-bootstrap on the fly. Maybe it's time for a community fork of cloud-init at GitHub.~~

Best, Sebastian

hartwork avatar Mar 03 '16 20:03 hartwork

Daniel Wallace is the last packager of cloud-init : @gtmanfred

nplanel avatar Mar 11 '16 03:03 nplanel

Happened to me as well.

markand avatar Jan 09 '19 07:01 markand

Could you elaborate how much of a showstopper this is to you right now? Do you have a workaround in place?

hartwork avatar Jan 09 '19 16:01 hartwork

To be honest, I don't even know what this is. I've purchased a VPS on French hosting OVH and the Arch Linux image and once I connected to it the /etc/locale.gen conf was srong. But I've just seen it was initialized by cloud init.

Editing the file and re-run locale-gen is fine obviously.

markand avatar Jan 10 '19 08:01 markand

FYI: I opened a PR upstream: https://github.com/canonical/cloud-init/pull/796, hopefully it gets some attention.

klausenbusk avatar Feb 02 '21 04:02 klausenbusk