Bug 1651446 - RFE: Add support for changing system locale with virt-customize(1)
Summary: RFE: Add support for changing system locale with virt-customize(1)
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-20 06:25 UTC by Marko Myllynen
Modified: 2018-11-20 08:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Marko Myllynen 2018-11-20 06:25:29 UTC
Description of problem:
Consider adding support for changing system locale with virt-customize(1).

On systemd based systems this would be otherwise pretty straightforward (just adjust /etc/locale.conf) but if the system has only e.g. glibc-langpack-fi/langpacks-fi installed instead of glibc-langpack-en/langpacks-end or glibc-all-langpacks, then switching from fi_FI.UTF-8 to en_US.UTF-8 properly might not be that trivial.

More exotic cases like using "%packages --instLangs=en_US" in kickstart or configurations like below may also make this a bit more involved. One option might of course just to document these limitations.

echo "%_install_langs en_US" > /etc/rpm/macros.image-language-conf
echo "override_install_langs=en_US" >> /etc/yum.conf

Thanks.

Comment 1 Richard W.M. Jones 2018-11-20 08:48:53 UTC
We can install new packages, or as you say document in the manual
that changing the locale might need to be accompanied by using
‘--install’ + a suitable langpack.  It would be nicer to do the
right thing automatically.


Note You need to log in before you can comment on or make changes to this bug.