From 3ddefba9f1c4cd3dea7f55e1a296f89d10c50713 Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Mon, 1 Sep 2014 11:04:07 +0200 Subject: [PATCH] firstboot copy Dom0 locale.conf to TemplateVMs locale.conf is what makes an AppVM shows menus in the local language instead of english. --- firstboot/firstboot-qubes-text | 1 + firstboot/modules/qubes_setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/firstboot/firstboot-qubes-text b/firstboot/firstboot-qubes-text index a937c19..c885542 100644 --- a/firstboot/firstboot-qubes-text +++ b/firstboot/firstboot-qubes-text @@ -79,6 +79,7 @@ if [ "$vms_service" == "yes" ]; then for template in `ls /var/lib/qubes/vm-templates`; do /bin/mount -oloop "/var/lib/qubes/vm-templates/$template/root.img" /mnt/template-root cp /etc/localtime /mnt/template-root/etc + cp /etc/locale.conf /mnt/template-root/etc cp /etc/ntp.conf /mnt/template-root/etc umount /mnt/template-root done diff --git a/firstboot/modules/qubes_setup.py b/firstboot/modules/qubes_setup.py index f9fe803..2c950bb 100644 --- a/firstboot/modules/qubes_setup.py +++ b/firstboot/modules/qubes_setup.py @@ -216,6 +216,7 @@ class moduleClass(Module): '/mnt/template-root']) # Copy timezone setting from Dom0 to template subprocess.check_call(['cp', '/etc/localtime', '/mnt/template-root/etc']) + subprocess.check_call(['cp', '/etc/locale.conf', '/mnt/template-root/etc']) subprocess.check_call(['cp', '/etc/ntp.conf', '/mnt/template-root/etc']) subprocess.check_call(['/bin/umount', '/mnt/template-root']) subprocess.check_call(['/bin/rmdir', '/mnt/template-root'])