Skip to content

Commit b155e85

Browse files
committed
base_image: restore locales-all installation for Debian Trixie
The virt-customize phase was failing with "update-locale: Error: invalid locale settings" because commit 6bb3bfb removed the locales-all package installation but left the locale configuration commands that depend on it. The update-locale command validates all settings in /etc/default/locale, and without locales-all providing the necessary locale infrastructure, it rejects the LANGUAGE=en_US:en setting as invalid during image build. Restore the locales-all installation within the Debian Trixie conditional block, placing it immediately before the locale configuration sequence so the image has proper locale support from the start. This prevents SSH locale warnings on first boot while keeping the package Debian-specific. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]>
1 parent f4ee14a commit b155e85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playbooks/roles/base_image/templates/virt-builder.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ append-line /etc/nsswitch.conf:ethers: db files
7373
append-line /etc/nsswitch.conf:rpc: db files
7474
append-line /etc/nsswitch.conf:netgroup: nis
7575
uninstall cloud-init
76+
install locales-all
7677
write /etc/default/locale:LANG=en_US.UTF-8
7778
append-line /etc/default/locale:LANGUAGE=en_US:en
7879
write /etc/locale.gen:en_US.UTF-8 UTF-8

0 commit comments

Comments
 (0)