From: John Wolfe Date: Wed, 18 May 2022 01:36:21 +0000 (-0700) Subject: vm-support: Capture the locale configuration of the Linux guest. X-Git-Tag: stable-12.1.0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619f656f4444af598179345f8c35e056e3563de1;p=thirdparty%2Fopen-vm-tools.git vm-support: Capture the locale configuration of the Linux guest. To aid in debugging issues related to locale configuration, the vm-support command has been updated to collect the following: - The contents of the /etc/default/locale file if it exists. - The contents of the /etc/locale.conf file if it exists. - The output of the 'locale' command for the current environment. - The output of the 'locale -a' command for a list of available locales. --- diff --git a/open-vm-tools/scripts/common/vm-support b/open-vm-tools/scripts/common/vm-support index 5943e4bf8..9e729e23e 100644 --- a/open-vm-tools/scripts/common/vm-support +++ b/open-vm-tools/scripts/common/vm-support @@ -1,6 +1,6 @@ #!/bin/sh ########################################################## -# Copyright (C) 2006-2021 VMware, Inc. All rights reserved. +# Copyright (C) 2006-2022 VMware, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published @@ -254,7 +254,7 @@ collectNetworkDetails() export PATH=/bin:/sbin:/usr/bin:/usr/sbin TARFILE=vm-`date +%Y-%m-%d`.$$.tar.gz -VER=0.94 +VER=0.95 # Parse args for option in $@ @@ -336,6 +336,8 @@ addfiles /var/run/vmware-* addfile /var/log/cloud-init.log addfile /var/log/cloud-init-output.log addfile /etc/cloud/cloud.cfg +addfile /etc/default/locale +addfile /etc/locale.conf runcmd "/tmp/df.txt" df collectNetworkDetails @@ -345,6 +347,8 @@ runcmd "/tmp/ulimit-a.txt" ulimit -a runcmd "/tmp/uptime.txt" uptime runcmd "/tmp/date.txt" date runcmd "/tmp/umask.txt" umask +runcmd "/tmp/locale-current.txt" locale +runcmd "/tmp/locale-list.txt" locale -a case `uname` in Linux)