From dfafd08f02e45e2cc9234e55f0248f87c1e87b5b Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Sun, 9 Apr 2017 13:38:14 -0400
Subject: [PATCH] casper: Only generate the locale selected at boot

---
 helpers/make-casper | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helpers/make-casper b/helpers/make-casper
index 2f45eb308..5c2940d65 100644
--- a/helpers/make-casper
+++ b/helpers/make-casper
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#    Copyright (C) 2012-2016  Ruben Rodriguuez <ruben@trisquel.info>
+#    Copyright (C) 2012-2017  Ruben Rodriguuez <ruben@trisquel.info>
 #
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
@@ -17,13 +17,16 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=1
+VERSION=2
 
 . ./config
 
 # Get rid of /cow showing in the desktop
 sed '/tmpfs/ s:$:\n/dev/loop1 /cow ext3 noauto 0 0:' scripts/casper-bottom/12fstab -i
 
+# Only generate the locale selected at boot
+sed 's/keep-existing/keep-existing $LANG/' -i scripts/casper-bottom/14locales
+
 rm scripts/casper-premount/10driver_updates
 rm scripts/casper-bottom/33enable_apport_crashes
 
-- 
GitLab