Skip to content

Automate Locale Generation in Arch Linux Vagrant Box #1

@kisp

Description

@kisp

Description:
Currently, to ensure that the en_US.UTF-8 locale is available and configured correctly in the Arch Linux Vagrant box, users need to manually execute the command sudo locale-gen. Additionally, the locale command should display the appropriate locale settings without errors.

Steps to Reproduce:

  1. Provision an Arch Linux Vagrant box.
  2. Verify the locale settings by running locale. It should display the default settings but not the desired en_US.UTF-8 locale.
  3. Manually execute sudo locale-gen to generate the en_US.UTF-8 locale.
  4. Re-run locale to verify that the locale settings are now correctly configured.

Expected Behavior:

  • The en_US.UTF-8 locale should be automatically generated during the provisioning process.
  • Running locale should display the desired locale settings without errors, as follows:
[vagrant@arch vagrant]$ locale 
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Proposed Solution:

  • Modify the Vagrant provisioning script to include the automatic generation of the en_US.UTF-8 locale during setup. This can be achieved by installing the necessary packages and configuring the locale settings within the script.

Additional Notes:

  • Automating this process will streamline the setup of Arch Linux Vagrant boxes and ensure consistent behavior across deployments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions