From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EMrEASyu6GXQYgAA62LTzQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 18:55:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EMrEASyu6GXQYgAA62LTzQ (envelope-from ) for ; Wed, 06 Mar 2024 18:55:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fedora.email header.s=aug2020 header.b=eAAI7x01; dmarc=pass (policy=quarantine) header.from=fedora.email; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709747756; a=rsa-sha256; cv=none; b=VWBrbDcr32UmKb6ZxPX5RrGR14ZL8dU086KVwB1dujF9Mah/OCgXkOLCbWzx+HJIdi0gry DNDVRmud6gtI3dqM/BVD2kuZsBt//6RlB1h5/EJU0KRW2FloK1nwh3BOWhrVXKhcEI1Cwa opzqIg4PS/HIZokyZieVRToibhE3oUFpJA1GE+Ra2fsgbBwe/1XLgdMAp/gvfaOMS/LjB5 HsTRJBAkTvnv+tg2urFdAqCDUyideTW5zP+mwGs2LLZkPAbjwwwdTbD75pOiF47Odn6Omc GzgJQe9FdQbpEytUUFWMWOJvkqBnZTupEtoRp968vIHC3jvwKZPc1S6PGZFSiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fedora.email header.s=aug2020 header.b=eAAI7x01; dmarc=pass (policy=quarantine) header.from=fedora.email; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709747756; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Y4PpHRiv0qeQMM3X/5wHKmJQW5p1cZxg7I5qsSJ4Hsw=; b=lHsS+tr1akftL1MQ9gTL6DEwqh4xsNVMxe5AV4/t5AXZMLJhX3xFZFA2Kr3aMXZGfY5FcQ nR2qTvF7j7iPBssa1g2xqcD93vxIHfykqoTEr5NLVUjDPHG2QCrnObyvwvn8/X9VQu+ghT B1umeH2w0qmCGT0d2kvQC5XNh7zfmEv+WMxqfaNpCKG+zoMprKp/732orI5Ld8ibavtR78 E6A2EtMlaribxINvvbnOm2zla8Y3mpsZwypp8+bAW+itPkQsH9QoAhXAeSiXPClJzngnBp 4PiYSbUJ61U6zwnikp6DiT7uAkuGtjfPs0UIKCyrMB79CpxjCiZBu7ENYGLKaA== 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 9BDE9E38E for ; Wed, 6 Mar 2024 18:55:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhvUL-0001zd-6K; Wed, 06 Mar 2024 12:55:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhvUJ-0001z9-4B for help-guix@gnu.org; Wed, 06 Mar 2024 12:55:31 -0500 Received: from fedora.email ([205.185.120.125]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhvUC-0006yH-9A for help-guix@gnu.org; Wed, 06 Mar 2024 12:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fedora.email; q=dns/txt; s=aug2020; bh=Y4PpHRiv0qeQMM3X/5wHKmJQW5p1cZxg7I5qsSJ4Hsw=; h=from:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:in-reply-to:references; b=eAAI7x01rSe01D71E3Pioj/0roguuYxZpuaXXgmnweC62ha8qAxkAmwCT550rOPECaZDV5/GW WTffahS1xHvaJispQif+IFD4IKT01JmHNRuurXvFP30JgGt4OlMj6UXM682wTmafdNjdj4qLGvu uKKzaMhVrMnDJpITHIvs7No= Received: from localhost ([185.242.251.197] 185.242.251.197-ip.operadors.cat) (Authenticated sender: willbilly) by fedora.email (ZoneMTA) with ESMTPSA id 18e14e798150000176.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 06 Mar 2024 17:55:06 +0000 X-Zone-Loop: 0ab5b66fc4228b6ceafdda5ef53430f7b40f20f506bf X-Originating-IP: [185.242.251.197] Date: Wed, 6 Mar 2024 18:55:01 +0100 From: William To: Carlo Zancanaro Cc: help-guix@gnu.org Subject: Re: Unable to chain-load Debian Message-ID: <20240306185501.371a1db5@fedora.email> In-Reply-To: <87r0gnwpx1.fsf@zancanaro.id.au> References: <20240305225424.05514197@fedora.email> <87r0gnwpx1.fsf@zancanaro.id.au> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=205.185.120.125; envelope-from=willbilly@fedora.email; helo=fedora.email X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-Migadu-Queue-Id: 9BDE9E38E X-TUID: whkr3HBZ+6xz On Wed, 06 Mar 2024 22:38:50 +1100 Carlo Zancanaro wrote: > Hi William, > > I don't know anything about Grub chainloading, but I had a quick look > and I think I have a vague idea what's going on. > > The menu entry is put together by this code in > gnu/bootloader/grub.scm: > > --8<---------------cut here---------------start------------->8--- > #~(format port " > menuentry ~s { > ~a > chainloader ~a > }~%" > #$label > #$(grub-root-search device chain-loader) > #$chain-loader) > --8<---------------cut here---------------end--------------->8--- > > Where "label", "device" and "chain-loader" are bound to their values > from the provided menu-entry record. > > This calls grub-root-search to emit a grub "search" command. This > function has the following: > > --8<---------------cut here---------------start------------->8--- > (define (grub-root-search device file) > ... > (if (and (string? file) (not (string-prefix? "/" file))) > "" > ...)) > --8<---------------cut here---------------end--------------->8--- > > In your config, chain-loader is "+1", so when this is passed in as > "file" the conditions both pass: it is a string, and it does not start > with a "/". Thus, the root-search returns the empty string, which is > dutifully inserted into your grub.cfg file. > > I think this is a bug. Unfortunately I'm not familiar enough with this > code to know how to fix it. > > Carlo Hello Carlo. It is indeed a bug, I've already reported this issue: https://issues.guix.gnu.org/issue/69588 Thanks for your help.