From patchwork Tue Apr 23 13:17:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Arruga Vivas X-Patchwork-Id: 13735 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4FFB816EFC; Tue, 23 Apr 2019 14:24:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E841016EFA for ; Tue, 23 Apr 2019 14:24:55 +0100 (BST) Received: from localhost ([127.0.0.1]:53833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIvPr-0001Zo-2D for patchwork@mira.cbaines.net; Tue, 23 Apr 2019 09:24:55 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#35394] [PATCH 0/3] Bootloader localization Resent-From: Miguel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Apr 2019 13:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35394@debbugs.gnu.org X-Debbugs-Original-To: Guix-devel Received: via spool by submit@debbugs.gnu.org id=B.155602544626656 (code B ref -1); Tue, 23 Apr 2019 13:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Apr 2019 13:17:26 +0000 Received: from localhost ([127.0.0.1]:52730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIvIb-0006vr-SD for submit@debbugs.gnu.org; Tue, 23 Apr 2019 09:17:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIvIZ-0006vW-N8 for submit@debbugs.gnu.org; Tue, 23 Apr 2019 09:17:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:50663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hIvIP-0001t6-AB for submit@debbugs.gnu.org; Tue, 23 Apr 2019 09:17:14 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=88xHXOthoArGra05AlKrpaKo05jOeki3GS9dmWa1QYI=; b=dTh+PJmtHMfG+ovkxpDm8qdtB3P7lVUdNgi1mNwnaYZbwjWOH8hxUNUPDIDQorqj1N +7663WhCUyAYy07NBq4N+AZ755vlxAcsCahO5LRopizGcXDCJsPOkwrj666f171csy4b 49b9HgA8p41YOUhMHZtN80wHSeUu9p54o6OcVPAATlg6i8zfdBAWbVW8Mw0IQNBDI0F4 LOQpcLAaYXBSL2w2rOnRp+ZJIQ1s/OpOC9L4/SVcihE0FPTb4haLlyk3SlI5lrl12+MK toIEh+dv35K90+SzyRb1TsBHJsyqAkGj1umYUlrmxda9dPpDCF9t2tWdjzctkOHNVKEk 8mpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=88xHXOthoArGra05AlKrpaKo05jOeki3GS9dmWa1QYI=; b=mSPZF3rhPy1I3obRn5oXZ+Gv8wu3fuvnJx6bJh7JeaUyFMw2C3bBZ+G+csJJJdcEgy qr+/B+d3bhOAL6sGNUNmKLM2sdihRYZMyFqbOlp2nXkEZYOJcMVI6RmJwlLDrqo01lXp ArhimTY0BV+CnO2INOubbGCLiTBiOQdlb94/4pTmvPaGoOfW5L+8k0b4JQ6EBjqfaCD/ D3kh+k8e3UIijBt2ZyTxJd/WHYTJJSZLFa4atK0tjfkn/xGvUAP8jNreTe8KEAI0dYSD GQYl16hwVqzvS9s9pVlwH2r82HfO7CoZdbFnAA2tuRsN2USWGCVYIe9RjcKarYbibnI4 IjrA== X-Gm-Message-State: APjAAAWYsPbGD16epYfmAiMHUdG1+I3agD7b6OiczwVCXmQ1XbYitJrZ 25+rxmLlfeFSeH/DRquRHTaF13tljwYZVw== X-Google-Smtp-Source: APXvYqxbef4pySyIxZ+tujMmJb64DQimjY886g/3fDZGpsuUxU788FuMajqjNhNITUBU+kj0dvKhww== X-Received: by 2002:adf:ee82:: with SMTP id b2mr13083797wro.233.1556025427520; Tue, 23 Apr 2019 06:17:07 -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> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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