Jim Meyering
2008-Apr-01 10:39 UTC
[Ovirt-devel] [PATCH] common-post.ks: Set LC_ALL=C as well as LANG=C
I've just committed this tiny change: common-post.ks: Set LC_ALL=C as well as LANG=C. other details: - Using single quotes means the reader doesn't have to wonder if there's a variable reference or a backtick in the string. - Redirect only once, to reduce duplication. diff --git a/ovirt-host-creator/common-post.ks b/ovirt-host-creator/common-post.ks index ad50be6..e3cd334 100644 --- a/ovirt-host-creator/common-post.ks +++ b/ovirt-host-creator/common-post.ks @@ -222,9 +222,10 @@ rm -f /etc/krb5.conf # with a single entry "1" echo 1 | /usr/sbin/packer >& /dev/null -# force logins (via ssh, etc) to use C language, since we remove locales -echo "# oVirt: force our LANG to C since we don't have locale stuff" >> /etc/profile -echo "export LANG=C" >> /etc/profile +# force logins (via ssh, etc) to use C locale, since we remove locales +{ echo '# oVirt: force our locale to C since we don't have locale stuff' + echo 'export LC_ALL=C LANG=C' +} >> /etc/profile # here, remove a bunch of files we don't need that are just eating up space. # it breaks rpm slightly, but it's not too bad -- 1.5.5.rc2.7.g0b2fe