From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id LuhZN2cxXGG7UQEAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 13:05:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mEpyMmcxXGE1EAAA1q6Kng (envelope-from ) for ; Tue, 05 Oct 2021 11:05:11 +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 4394B1567E for ; Tue, 5 Oct 2021 13:05:11 +0200 (CEST) Received: from localhost ([::1]:37192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXiFx-0005p2-Ob for larch@yhetil.org; Tue, 05 Oct 2021 07:05:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXiFb-0005oW-Se for help-guix@gnu.org; Tue, 05 Oct 2021 07:04:47 -0400 Received: from pelzflorian.de ([5.45.111.108]:37790 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 1mXiFZ-0001xV-Ij for help-guix@gnu.org; Tue, 05 Oct 2021 07:04:47 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 3516836069D; Tue, 5 Oct 2021 13:04:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1633431882; bh=ZJtrYzJeGbaIUaOjHXC0YUceOmdNrPL3rGClnwPjIME=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ylATqC8c2V46kvgjSiHx0BrHFHjAdpUIuzoMuYV669ZQDuuWV+og0Ge/BjPiQEQH0 gZnu1JYhDkPLIrk5y9zrotprx5Y5yn/D2DcCmE9T62jnJaUhRKxx67Ec4jCkxnpgjl 5tvaSAudgm04Vdn5kZskaSf4F7tHtPs1kYV32hmM= Date: Tue, 5 Oct 2021 13:04:32 +0200 From: "pelzflorian (Florian Pelz)" To: Thomas Danckaert Subject: Re: repair broken boot record Message-ID: <20211005110432.hgjwehtz7gb2436n@pelzflorian.localdomain> References: <0dd640415db388dd78cfbd1e8174ea65@thomasdanckaert.be> <20211001065344.3ofpdgnxusvgj4ac@pelzflorian.localdomain> <2d6ff1739c954b939be941d34ef6c856@thomasdanckaert.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2d6ff1739c954b939be941d34ef6c856@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=1633431911; 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=nFTTNoVqWjFzgxXbHcY5bndLkhlr0YhQ4Jj/aOahF38=; b=heCsDo1VX79j9vTGw8L4PrHVfVMZGBX+4+1UnMSaHS2KVndUsuZcRR5vU+WjVWoeNz5IME 5qlO8jR1EMPN9fsaKUBM757m0qFeErTB09HRz8bucy7l8JKbCWax3L27bc27GtgT3UztmM p8fUtBx3hn5x1wAjqCBvumYcJZzYaAFKiALq/0CxwpHX8ZtpE6YibrgMikOo9U7gIGi+mu cPHdrU3+Es4UXX5SygdSnEKqVLZr1a2gg9VjxMqFTxRFR3tTwFt8xTaldv6plz1by+Acly L9DBeSkWBETcoi1rHQdR7nbKU6aABPMwivzYqlMzZBY0+SRc6HD4R8PojUmVEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633431911; a=rsa-sha256; cv=none; b=gzdrqsHyuwTbluKVwJsP+ThdyMZNitp9usj/yW5aq6lGK7rvaEHS053qzk+nvOwNBpgCc3 LZ1xbOesf8KS2qjUNsPmdRk+/cOZaXNwVxsHqdypbIeTHPLjVrHMif296veS0vp7ZGt/W9 wXVRPkAXxrOcjL6ArRqwK5RWKPt1USryCbWdp+E0ckSpE7XgIXBXkydJw8xi7IvuLP0AQM GePQtBQubL9S+eiv+CrKmrJvaR/kYsKEfgk+yqdliLW90F5XEOT3mpB5MoFkLHwrvY7GNp EpndccjTCwTUGHfCB5jGiuE4r434y7Q0Q8LSG6fbJUBkem5ieeRBErGdKtzd/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=ylATqC8c; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=ylATqC8c; 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: 4394B1567E X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: n5R9plp+86yL On Tue, Oct 05, 2021 at 11:28:50AM +0200, Thomas Danckaert wrote: > Hello Florian, > > thank you for your help. I managed to chroot into my system, and re-run > 'guix system reconfigure' (very useful mailing list discussion on chrooting, > I also vote for including it in documentation :) ). I’m glad it helped so far, although I don’t know all the details about chroot nor EFI. (For example which directories from the live system should be mounted in the chroot and why.) So I won’t attempt to write documentation. > 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. 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. What I write below you will probably not need; you can ignore it if the above works: > Indeed my system uses grub-efi. Could that be related? Can you point me to > some specific instructions on how to check/solve efivar issues? If you have made available efivar (by installing it or by `guix environment --ad-hoc efivar` or similar), and if you have booted from an EFI bootloader, then you can run `efivar -l` to see all variables stored on your motherboard/mainboard. The motherboard NVRAM can become full. However I’m not sure how to delete such variables; I think the program efibootmgr can do it. Hopefully and likely it will not be necessary. > Not sure if I need grub-efi, or if it might also work using grub-pc. Until > now I've always used grub-efi. Some systems need EFI (and others don’t work with EFI). It is probably better to stick with EFI. > (Another thing I noticed (maybe a side effect of chroot?): when I re-run > 'guix system reconfigure' it tries to rebuild derivations that are already > there in the store from last time, I think.) Maybe they just have the same package name but are different versions, so a rebuild is necessary. But maybe also the running guix-daemon is the one from the live USB and not from the installed system. guix-daemon stores information about what is installed in a sqlite database. Now I wonder if the chroot can make changes to the wrong database and interfere with the already installed guix-daemon, making the store inconsistent. Anyway, this should not cause trouble with reconfiguring and if some inconsistency in the installed system causes trouble later on, guix gc --verify can fix it. It is not important now. Hope it helps. Regards, Florian