From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Subject: Bootloader localization Date: Fri, 26 Apr 2019 12:59:13 +0200 Message-ID: <20190426125913.3d8b0ab4@gmail.com> References: <20190423151702.05258473@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJyZh-00064D-Mz for guix-devel@gnu.org; Fri, 26 Apr 2019 06:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJyZd-0001Gm-U6 for guix-devel@gnu.org; Fri, 26 Apr 2019 06:59:23 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:35435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJyZc-00019a-2c for guix-devel@gnu.org; Fri, 26 Apr 2019 06:59:21 -0400 Received: by mail-wm1-x32a.google.com with SMTP id y197so3806382wmd.0 for ; Fri, 26 Apr 2019 03:59:18 -0700 (PDT) In-Reply-To: <20190423151702.05258473@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: 35394@debbugs.gnu.org Cc: guix-devel@gnu.org Hi everybody! I've been working on these patches and I've been able to generate a derivation with the format expected by Grub during bootloading, use it in the grub.cfg file. I removed the test for the folder inside the configuration file and added a check for the "locale" output during the file generation. Maybe it is not quite elegant, but I'm open to ideas. Now there are 4 patches instead of 3. What do you think? Best regards, Miguel PS: I CC'ed the mailing list too looking for other ideas. El Tue, 23 Apr 2019 15:17:02 +0200 Miguel escribi=C3=B3: > Hello Guix! >=20 > 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. >=20 > 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. >=20 > 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. >=20 > WDYT? >=20 > Best regards, > Miguel