hartwork / image-bootstrap

:partly_sunny: Creates Linux chroots and bootable virtual machine images; command line tool (Python 3)
https://linuximages.de/
264 stars 39 forks source link

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

Open nplanel opened 8 years ago

nplanel commented 8 years ago

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.

hartwork commented 8 years ago

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

nplanel commented 8 years ago

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

markand commented 5 years ago

Happened to me as well.

hartwork commented 5 years ago

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

markand commented 5 years ago

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.

klausenbusk commented 3 years ago

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