From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CA+0EZLW4F8eDgAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 17:08:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cOOKDZLW4F+dRAAA1q6Kng (envelope-from ) for ; Mon, 21 Dec 2020 17:08:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EDEEF9403A2 for ; Mon, 21 Dec 2020 17:08:33 +0000 (UTC) Received: from localhost ([::1]:60302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krOfg-0004sA-P8 for larch@yhetil.org; Mon, 21 Dec 2020 12:08:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krObL-0000sr-Ps for guix-patches@gnu.org; Mon, 21 Dec 2020 12:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krObK-0004tu-9P for guix-patches@gnu.org; Mon, 21 Dec 2020 12:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krObK-0007LR-4c for guix-patches@gnu.org; Mon, 21 Dec 2020 12:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45225] [PATCH] gnu: grub: Fix unicode font loading when booting over TFTP. Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Dec 2020 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45225 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 45225-submit@debbugs.gnu.org id=B45225.160857021628192 (code B ref 45225); Mon, 21 Dec 2020 17:04:02 +0000 Received: (at 45225) by debbugs.gnu.org; 21 Dec 2020 17:03:36 +0000 Received: from localhost ([127.0.0.1]:48172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krOau-0007Kd-8x for submit@debbugs.gnu.org; Mon, 21 Dec 2020 12:03:36 -0500 Received: from smtpout2.vodafonemail.de ([145.253.239.133]:53840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krOaq-0007KI-MW for 45225@debbugs.gnu.org; Mon, 21 Dec 2020 12:03:35 -0500 Received: from smtp.vodafone.de (unknown [10.2.0.34]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id 40DA4121B15; Mon, 21 Dec 2020 18:03:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-smtpout-mb-15sep; t=1608570206; bh=alCsL9AyABTQxXoRsmGvEkQJgpPQADSQgp8qYlsaFVk=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=mgu/PHW4VGd4ADQ6Qt9iNT95aqT2O53kcbcE3i7O/8fyZEaK9CXwODKjj/Bly0XUc oLI2sZf2jRIMlZXUmWbvarvi4Bd0SDJNXOcjEA5yjT6UZpmOcr78tCMkNQmGTvkgvj LiyexE35ZpPuBBppa6VyujmwYDe1J/uRHIhH/8PQ= Received: from macbook-pro.kuh-wiese.my-router.de (dslb-002-202-077-089.002.202.pools.vodafone-ip.de [2.202.77.89]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id ED06114105E; Mon, 21 Dec 2020 17:03:25 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <87blen6wmy.fsf@gnu.org> Date: Mon, 21 Dec 2020 18:03:22 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4043C397-47B2-4DA5-B873-86DABE169ED0@vodafonemail.de> References: <5BC2CE26-5F2D-4250-A9E5-D04BB85DD942@vodafonemail.de> <87blen6wmy.fsf@gnu.org> X-Mailer: Apple Mail (2.3124) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 3211 X-purgate-ID: 155817::1608570206-000006AA-E7144E59/0/0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45225@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.82 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=vodafonemail.de header.s=vfde-smtpout-mb-15sep header.b=mgu/PHW4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EDEEF9403A2 X-Spam-Score: -0.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: uPh7Fp1MwYn+ Hi Ludo=E2=80=99! > I=E2=80=99m not sure I understand what this change meant to fix = though. What > was the initial problem that led to the addition of this > =E2=80=98canonicalize-path=E2=80=99 call? When I am booting over TFTP, the Guix related files are located = somewhere on that server and therefore symlinks do not work. Let's make = an example: There is some path like /volume/systems/guix-system/. There you can find = gnu/store/ and boot/. That server serves /volume/systems/guix-system/ via NFS as the root file = system for a raspberry. That server also serves = /volume/systems/guix-system/boot/ as the TFTP root for booting. Now due to the fact that I need some firmware, configuration files, = U-Boot and GRUB, there is now the possibility to create a = bootloader-profile, which is basically a collection of symlinks to all = this. Due to this, there is somewhere a = /volume/systems/guix-system/gnu/store/=E2=80=A6-bootloader-profile/share/g= rub/unicode.pf2, which is an *absolute* symlink to = /gnu/store/=E2=80=A6-grub-efi-2.04/share/grub/unicode.pf2.=20 The generated grub.cfg now normally refers to = /gnu/store/=E2=80=A6-bootloader-profile/share/grub/unicode.pf2. When GRUB tries to load = gnu/store/=E2=80=A6-bootloader-profile/share/grub/unicode.pf2 via TFTP, = due to a profile prepared *relative* symlink at = /volume/systems/guix-system/boot/gnu/store to the real store location at = ../..gnu/store/guix-system/gnu/store/ the TFTP server is able to access = gnu/store/=E2=80=A6-bootloader-profile/share/grub/unicode.pf2. And there is the problem: That = /gnu/store/=E2=80=A6-bootloader-profile/share/grub/unicode.pf2 is an = *absolute* symlink with no meaning to the TFTP server, so loading the = font fails. Simply speaking: Files for booting via TFTP must not be *absolute* = symlinks. Meanwhile I know that the font can be referred to as simply "unicode" = without any path and extension, as it is installed with = install-grub-efi, install-grub-efi-netboot and install-grub. I=E2=80=99m = just still unsure about install-grub-disk-image. So hopefully the font = reference can be simplified. > Yeah, I wanted to send you a heads-up and then I forgot, apologies! Nevermind. I=E2=80=99m sorry to have caused this trouble. > In general, my suggestion when fiddling with these things is to at = least > run =E2=80=A6 My trouble is that I only have that raspberry with only 1 GB RAM yet, = and running tests on it is kind of impossible. I tried to install Guix in a virtual machine on a NAS system during the = weekend. The installation image is working, but the installed system = hangs during boot. At least this was enough to find out that a simple = "unicode" in grub.cfg is also sufficient for install-grub. :-) I=E2=80=99m sorry that I broke Guix. I didn=E2=80=99t imagine that a = canonicalize-path would not work, when the store path is known during = build. But this brings me back to my original question: Could you please = explain why the grub package, which is referred to with a file-append = gexp, is finally not visible when the grub.cfg is created? Bye Stefan=20