From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:59653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIvJD-0004hg-QU for guix-patches@gnu.org; Tue, 23 Apr 2019 09:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIvJC-0002j5-Qh for guix-patches@gnu.org; Tue, 23 Apr 2019 09:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIvJC-0002im-Mz for guix-patches@gnu.org; Tue, 23 Apr 2019 09:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIvJC-0006yL-Hr for guix-patches@gnu.org; Tue, 23 Apr 2019 09:18:02 -0400 Subject: [bug#35394] [PATCH 0/3] Bootloader localization Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:59104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIvIN-00044U-8k for guix-patches@gnu.org; Tue, 23 Apr 2019 09:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIvIL-0001p0-QI for guix-patches@gnu.org; Tue, 23 Apr 2019 09:17:10 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIvIL-0001nC-5I for guix-patches@gnu.org; Tue, 23 Apr 2019 09:17:09 -0400 Received: by mail-wr1-x42a.google.com with SMTP id g3so20161634wrx.9 for ; Tue, 23 Apr 2019 06:17:09 -0700 (PDT) Received: from localhost (19.49.134.37.dynamic.jazztel.es. [37.134.49.19]) by smtp.gmail.com with ESMTPSA id w11sm31180322wre.15.2019.04.23.06.17.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Apr 2019 06:17:07 -0700 (PDT) Date: Tue, 23 Apr 2019 15:17:02 +0200 From: Miguel Message-ID: <20190423151702.05258473@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35394@debbugs.gnu.org Hello Guix! As a Grub translator, I've been hacking a little bit in order to provide locale information to Grub. I use Guix in a daily basis, as my main computer operating system, and I this is a key step in order to provide a better experience to the all kind of users, who may do not know other languages than their native one. My current idea, implemented in the following patches, is something along these lines: 1. Store locale information into boot-parameters file. This patch contains a quite silly test that requires wiser review. 2. Provide this information to the bootloader at the configuration time. This, ideally, should provided at installation time too, but I'm stuck seeing my first messages in english when grub asks for the whole-disk encryption passphrase as I don't know how to create a working core.img yet. 3. Add a snippet to the generated grub.cfg file with the language information. Some configurations, as /boot in a separate partition, does not work with this patch, but take it as a proof of concept. Lacking points: 1. No support for other bootloaders yet. I don't know any of them too much, but I'm unaware of their localization support. 2. Grub installation process is not transactional enough. I have some ideas for that, to be discussed in another thread, although one key point is tightly related with this topic: /boot/grub/locale generation. Having this folder as a derivation would make explicit the dependency, but I have to work more on this and I'm open to any ideas. WDYT? Best regards, Miguel