From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kHLzJ3BsXWFyQAEAgWs5BA (envelope-from ) for ; Wed, 06 Oct 2021 11:29:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6NqWI3BsXWHQVAAAbx9fmQ (envelope-from ) for ; Wed, 06 Oct 2021 09:29:20 +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 570743BC85 for ; Wed, 6 Oct 2021 11:29:20 +0200 (CEST) Received: from localhost ([::1]:52172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY3Ek-0008FE-Ke for larch@yhetil.org; Wed, 06 Oct 2021 05:29:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY3EJ-0008Cv-8a for help-guix@gnu.org; Wed, 06 Oct 2021 05:28:51 -0400 Received: from pelzflorian.de ([5.45.111.108]:38926 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY3EF-0005RJ-1Z for help-guix@gnu.org; Wed, 06 Oct 2021 05:28:49 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 9CD9E36069D; Wed, 6 Oct 2021 11:28:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1633512524; bh=nUEfBcMuyYwmhcSGSn/psFeGd01jTn7r6wBExdhOtZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=qAbQYfsQ8zlys5Vg4sl4JmgR4/nj5PKKoTA/OVAEAjKBFpSVbIWbFdnaOrXQydeBh YaXNaC2XoepblT6Xo268UW/tqmYzar5NENJLz7YjGs82OT72Ju0V6ya5ePLQT8Ei+E rhkVEQhzgrKdLS0Xo44BC/QiAVwHNUi69I0ENThA= Date: Wed, 6 Oct 2021 11:28:36 +0200 From: "pelzflorian (Florian Pelz)" To: Thomas Danckaert Subject: Re: repair broken boot record Message-ID: <20211006092836.bskz7hd36e5ksts7@pelzflorian.localdomain> References: <0dd640415db388dd78cfbd1e8174ea65@thomasdanckaert.be> <20211001065344.3ofpdgnxusvgj4ac@pelzflorian.localdomain> <2d6ff1739c954b939be941d34ef6c856@thomasdanckaert.be> <20211005110432.hgjwehtz7gb2436n@pelzflorian.localdomain> <7bd51847fd4893941b9850f345d00f5d@thomasdanckaert.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7bd51847fd4893941b9850f345d00f5d@thomasdanckaert.be> Received-SPF: pass client-ip=5.45.111.108; envelope-from=pelzflorian@pelzflorian.de; helo=mail.pelzflorian.de 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633512560; 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=iUaeAX79SHOYa6ZgLo/BZJDLogz0tg/pj4FJpz80zDM=; b=paP49Fbq3JIQRHw3q+VuQaQAiP3K+HFshK4oWIoa+Uk0p+R3qrawTVyRbT3DXb8SRW5o09 sUkP+Xs/gHtsH5QyHSRHq5jNCq6jl3Jj/zU+rzF33Mj+Fk5bTGZ00oUV1Mx0Fzuu2tABi5 a0pwozA+aTep1UFF0YolIO1tCU/h4IUdrAXlysyZUvxl+uOGQgQOW23XRE46mOLZ3ysYdk /ZlM6zytPxOaQmq8PMkv4f++VhWwMjrNkjZjYqN8xHONItYSN0m/c2FL874SYvkgu6OOh9 Zpv99FrKk9UG+M8leoI+aN8h7C9oPo5xCx+Gpqob4Eok4p0XrAyUPearSyEJ3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633512560; a=rsa-sha256; cv=none; b=Mrgw/YQoiILX0tqhGOZzQNzwwFE8T+HiFuZqee0KbFnK18MZPk80dxb0M74/JBcldN3hB+ pFAHvhCchnQNEbSTY/EUG6BPzdahajr2Gku8wXeJZybEp+nSFKMCAjIIpIwYjfN666m7hh OsS+omNRzujgE2cTgiD6TxvYNPnrVECmwqLV3CNa7zeVT27dL9mmwX64eP4Hew1u9L8BBv paOwoJ7XcMbJgc+g9noxrztBwD8DHoj3r44XdVN56JW/WJOXoLpFX+4cFQoYlLJWd9U232 dXOcQhg00QrrMoFp7IbnnXx2asmqKez1385oBQ7PLveay9yFejXTE2SnKpzD9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=qAbQYfsQ; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=qAbQYfsQ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 570743BC85 X-Spam-Score: -1.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: FwY/aQO32AMm On Wed, Oct 06, 2021 at 10:23:38AM +0200, Thomas Danckaert wrote: > On 2021-10-05 13:04, pelzflorian (Florian Pelz) wrote: > > On Tue, Oct 05, 2021 at 11:28:50AM +0200, Thomas Danckaert wrote: > > > In one of the final > > > steps, where guix tries to install the bootloader, I get the error: > > > > > > /gnu/store/.../grub/i386-pc/modinfo.sh doesn't exist. Please specify > > > --target or --directory. > > > > This is strange. When you reconfigure, Guix should print the > > grub-install command that was used, which should include both --target > > and --directory. > > The full message is: > > guix system: error: '/gnu/store/v77n5m....grub-efi-2.06/sbin/grub-install > --boot-directory //boot --bootloader-id=Guix --efi-directory=/boot/efi' > exited with status 1; output follows: > > /gnu/store/.../grub-install: error: > /gnu/store/.../lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify > --target or --directory' > > Note that the grub-install command doens't contain '--target' or > '--directory'. (Also: my system is x64, and this seems to be for i386. > Should there be a --target=x64_86-efi somewhere?) Sorry, I was wrong about --target being used; looking in the Guix source at gnu/bootloader/grub.scm , --target is only for traditional BIOS boot and not EFI boot. Your command is correct. I checked and have used exactly the same command successfully (I checked the install-bootloader.scm file after reconfigure on an EFI PC), and it should install, but for you it does not. It is good to see the full message though. Note that you can run exactly the same command manually, but the result would likely be the same. > > However, perhaps the chroot is at fault: Before chrooting to, let’s > > say, /mnt with chroot /mnt, you need to have mounted the /dev/sdXy > > file system with EFI on it (that which is declared in your config.scm) > > to /mnt/boot/efi. > > I have in my config 'target /boot/efi'. My EFI partition is /dev/sda1. If > I mount it like > # mount /dev/sda1 /mnt2 > (/mnt2 because I already have my /dev/sda3 partition with guix at /mnt) > I find the following layout: > > /mnt2/EFI/ > EFI > grub > Guix > > what would be the correct bind mount? I tried > # mount --bind /mnt2/EFI /boot/efi > so I now have > /boot/efi/ > EFI > grub > Guix > > Any idea if that is the desired layout? >From outside the chroot, you should # mount /dev/sda3 /mnt # mount /dev/sda1 /mnt/boot/efi Regards, Florian