New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands fail to start in CentOS template due to locale problems #3923

Closed
misterzed88 opened this Issue May 23, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@misterzed88

Qubes OS version:

R4.0

Affected component(s):

qubes-builder-rpm


Steps to reproduce the behavior:

  1. Use qubes-builder to build and install an centos-7 template.
  2. Attempt to start a terminal window with:
    qvm-run centos-7 gnome-terminal
  3. A terminal window does not appear. The centos-7 logs show that this is due locale problems.

General notes:

The CentOS template is created with 'LANG=C.UTF-8' in /etc/locale.conf. This locale is not available in CentOS.

A workaround is to change the default language to 'LANG=en_US.UTF-8', which can be done by replacing the following code in builder-rpm/template_scripts/04_install_qubes.sh:

echo "LANG=C.UTF-8" >> ${INSTALLDIR}/etc/locale.conf

with

if [ "$DISTRIBUTION" = "centos" ]; then
    echo "LANG=en_US.UTF-8" >> ${INSTALLDIR}/etc/locale.conf
else
    echo "LANG=C.UTF-8" >> ${INSTALLDIR}/etc/locale.conf
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment