cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

Fix locale generation on debian base distros

Open paulober opened this issue 3 months ago • 3 comments

Proposed Commit Message

fix(debian): Fix locale generation

The current debian apply_locale implementation
depends on a modified locale-gen script that
only exists on ubuntu systems. This patch
fixes the generation of new locales
and should also work on ubuntu
with out the reliance on the custom
locale-gen patch.

Fixes GH-6471

Additional Context

#6471

Test Steps

Try setting a locale on debian 13 with the current cloud-init release. It will run without problems but not generate the selected locale because locale-gen doesn't support locale-gen <locale> but want you select the locales in /etc/locale.gen prior to the execution of this script.

Merge type

  • [x] Squash merge using "Proposed Commit Message"
  • [ ] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

@tdewey-rpi

paulober avatar Sep 12 '25 16:09 paulober

@blackboxsw

paulober avatar Oct 15 '25 08:10 paulober

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging blackboxsw, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag blackboxsw to reopen it.)

github-actions[bot] avatar Nov 18 '25 00:11 github-actions[bot]

@blackboxsw This is required for locale generation on Debian and related distros (except for ubuntu) to work.

paulober avatar Nov 25 '25 22:11 paulober