Commit 2514a69
committed
guestfs: fix locale warnings in VM deployments
Fix "cannot change locale" SSH warnings by configuring locales
comprehensively across both new and existing VM deployments.
New VMs (virt-builder template):
- Add locales-all package for comprehensive locale support
- Configure en_US.UTF-8 during both image build and first boot
- Remove problematic dpkg-reconfigure command
Existing VMs (devconfig tasks):
- Install locales-all package if missing
- Configure /etc/default/locale and /etc/locale.gen files
- Generate and update locales with locale-gen and update-locale
This ensures en_US.UTF-8 locale is available at boot, eliminating
SSH warnings across all VM deployment scenarios.
Generated-by: Claude AI
Link: https://lore.kernel.org/r/20250820-guestfs-custom-image-fixes-v1-9-0fe1d69c3f33@samsung.com
Signed-off-by: Daniel Gomez <[email protected]>
Reviewed-by: Chuck Lever <[email protected]>1 parent e46bf3c commit 2514a69
File tree
2 files changed
+45
-2
lines changed- playbooks/roles
- base_image/templates
- devconfig/tasks
2 files changed
+45
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
32 | 74 | | |
33 | 75 | | |
34 | 76 | | |
| |||
0 commit comments