From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gHSWJCnmFGfTpAAAqHPOHw:P1 (envelope-from ) for ; Sun, 20 Oct 2024 11:14:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gHSWJCnmFGfTpAAAqHPOHw (envelope-from ) for ; Sun, 20 Oct 2024 13:14:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=F8VnUhWX; dmarc=none; 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=1729422889; a=rsa-sha256; cv=none; b=j5pT/vhI39dgvjkZEFqnuqA+180F51lpsWBzC5c03j6JqOHN8kKTQHeRp7pGFuupNjYr7u ED3t9xQ87UEiFBsoXvnXRMcCwbmr6D/QmfhjMmn5kyiir/kakvH7jswrnlPSEIiOkzZPVj 5hbRthVtifWAv2Dhnm+HkvXoHmAlLNCzUy/Y95skt4d30i9brlURQ8xc3i5p7Ek/gma9yo iiwMvn5RELu+yespCM0LppQ0EhoPv/vYbVaR+0Lsg0XLY5MfKt2TXJ7GggLvHMm/LN/aCg CmxjPfvZYc+oyWGNTgZIebZLtkLgg/eE65if3X9DckAQH2RaCTPuppGd7QqrAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=burningswell-com.20230601.gappssmtp.com header.s=20230601 header.b=F8VnUhWX; dmarc=none; 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=1729422889; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VL8TLPmRt1t753V7L+CWy0KI2IuDXM8VKfhyX7tJXas=; b=GadSDk9ZHVurrJF44gfwbAgXtelZyZovdiGS7Awg4YgcH2mps1W2FcVGqki1CtFaODHdxB vOo4pc/lQFkAvUjxsX4Y64xeodmMrBJnLn/IWt9Ittz/IyKJrG5rmX5VUleVXdZWhSGj/F wnFqEOoN5boH+abyAvf0wQBGdsSe0g20uJpUd3TEfeIhODrslFOqap1IIxqOOOyrtahFn9 9eHCq3mlXOmkXP4c2/RaoDrIYfR6ELh8CxJEU0Kd75SC8v5L9jnvltV8mifUV06/CVO+Dy TRpNzDSNIG0cHZQA3wKwpy4mQ+DdQ5Y0uJo+RWOlLmgeW6LNzBpViONFWnbDww== 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 4243961DF for ; Sun, 20 Oct 2024 13:14:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2Tt6-00078g-JN; Sun, 20 Oct 2024 07:14:20 -0400 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 1t2Tt4-00078O-Gh for help-guix@gnu.org; Sun, 20 Oct 2024 07:14:18 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2Tt1-0000F8-U7 for help-guix@gnu.org; Sun, 20 Oct 2024 07:14:18 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a93c1cc74fdso523900166b.3 for ; Sun, 20 Oct 2024 04:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1729422853; x=1730027653; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=VL8TLPmRt1t753V7L+CWy0KI2IuDXM8VKfhyX7tJXas=; b=F8VnUhWX/Thq6hBpW4A8mHRODiWzyJnVBbkXnaHlWwkU7CN/WWhwH1CIMOLHsEkx7i R//K4T4JfUOwUXEOAji8e4V1t1T3qemutI9VCWMgMvOujj6Qhy/5ZPx3wbBSVLybSFyD 5koazDtA2r+ThNmIoE1Y1SLM8/98M/vdma7iU6xMmfs8Il2DNwqt3QoJZuYOdDYWqBeJ dbguZ9xoY6g7WZ8+AKpEiAxNMOgoUQZ5YlCxY5UXSlrrjLgc00Pm9gXlB5lA9XU2sHRZ QbneH+FJ0nzx/irwDW9TIBvxjoLfplHWKdgNRnc3Xb8fwnKnQP/s5LaUXlOHy+xaXjg5 XF6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729422853; x=1730027653; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VL8TLPmRt1t753V7L+CWy0KI2IuDXM8VKfhyX7tJXas=; b=Y7ur7ILNzwH7pxadNODDEyIpSyK0yECXOdiKNSNfWxM+7c0GN4SYRvPE61XCq4hDI+ iMDdBhq3wdjb8XGZiCzJIbMkoD8VfwTJysVW7sq41xquPhfQkqLMakiK2foEqf7cMll5 OHHVVmDzSSAaUz8RH9ygpfQ0R8JlMMfI9ITTW0XEimml0C/synQd6pd+tiWvuMouNauW BukCSoAzG92UFG8u/sQhRroYtMZgEuzkjgtC3LQP/KNG4rfB2Fp7+kjAQ5+hES1yAhMg Adn1K4GkvYDnZ9+SsSXYAgN6qpDMvTJAmaPBIOZABvi6VEaTo4eKT6SZ5YyguQKqGEd9 qpEQ== X-Gm-Message-State: AOJu0YxNlqrHyFdO2hElmaq+abvk429vkRNzEBPzSDWsn4a2zwN/lJ5s eUhkhftgBPBXvqiIC4DKBb0PvW4E6NP9nJtHJTniDXoE0/ukOQ14tRCG/gubsFKWCL+Y224zbNw l X-Google-Smtp-Source: AGHT+IE3EtA7xfalfSW1rNZw6MleGeWN8TNSMjpXYip7xTm0dJR7pkW/Co3evKxmZiesPPqC2ojBoQ== X-Received: by 2002:a17:907:6e94:b0:a99:ee42:1f38 with SMTP id a640c23a62f3a-a9a69bab545mr808869666b.31.1729422853139; Sun, 20 Oct 2024 04:14:13 -0700 (PDT) Received: from m1 ([2a01:599:119:6002:f5f7:e15b:a580:9e21]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a91575997sm79728966b.187.2024.10.20.04.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 04:14:12 -0700 (PDT) From: Roman Scherer To: Efraim Flashner Cc: help-guix@gnu.org, stefan-guix@vodafonemail.de Subject: Re: Rollback with efi-bootloader-chain: no such bootloader In-Reply-To: <86y139ghe9.fsf@burningswell.com> (Roman Scherer's message of "Mon, 30 Sep 2024 19:50:38 +0200") References: <86v7yh7han.fsf@burningswell.com> <86y139ghe9.fsf@burningswell.com> Date: Sun, 20 Oct 2024 13:14:10 +0200 Message-ID: <86a5ezyqkd.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::636; envelope-from=roman.scherer@burningswell.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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-Spam-Score: -2.81 X-Spam-Score: -2.81 X-Migadu-Queue-Id: 4243961DF X-Migadu-Scanner: mx12.migadu.com X-TUID: JsLhy4BFYATr --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Roman Scherer writes: Hello, I think I figured it out. In commit a9acbf919a7668e26863d2d26d48c5fd41b57fcd the name of the efi-bootloader-chain bootloader was changed to the string "efi-bootloader-chain". I believe this this should be a symbol, like in all other bootloaders. The `(lookup-bootloader-by-name name)` procedure uses this form (eq? name (bootloader-name bootloader)) to find the bootloader by name, but fails. I submitted a patch that changes the name of the efi-bootloader-chain bootloader to be a symbol. With this I can roll-back and switch generations again on my system. The patch is here: https://lists.gnu.org/archive/html/guix-patches/2024-10/msg01009.html I put Stefan on CC, who authored that commit. Could someone please review this patch? Thanks, Roman. > Hi Efraim, > > thanks for helping me! > > This is what I see when I run `which -a guix` as a user, and when run via > sudo. I do reconfigure the system with `sudo guix ...`. I used to as root= . Not > sure if that matters. > > [roman@m1 guix]$ which -a guix > /home/roman/.config/guix/current/bin/guix > /run/current-system/profile/bin/guix > /home/roman/.config/guix/current/bin/guix > /run/current-system/profile/bin/guix > > [roman@m1 guix]$ sudo which -a guix > /home/roman/.config/guix/current/bin/guix > /run/current-system/profile/bin/guix > /home/roman/.config/guix/current/bin/guix > /run/current-system/profile/bin/guix > > I have no idea if this is good or bad. :) > > I don't think I have any `guix` package installed in my profiles. I check= ed > this with: > > guix package -I | grep guix > sudo guix package -I | grep guix > > Both profiles also seem to have a recent version of the `guix` cli. > > [roman@m1 guix]$ guix --version > guix (GNU Guix) 68edde635d7f60fb48b2b664e55118fdc3021a73 > > [roman@m1 guix]$ sudo guix --version > guix (GNU Guix) 68edde635d7f60fb48b2b664e55118fdc3021a73 > > Was your thinking that I may got so far back in time somehow that the `gu= ix` > package I was using did not contain the `efi-bootloader-chain` variable, = and > thus `lookup-bootloader-by-name` could not find it? > > Good idea, I haven't even thought of that. :) > > But I think that's not the case here, isn't it? > > Do you have any other ideas? > > Thanks, Roman. > > Efraim Flashner writes: > >> On Fri, Sep 27, 2024 at 08:16:16AM +0200, Roman Scherer wrote: >>>=20 >>> Hello Guix, >>>=20 >>> I'm using a Guix system with the efi-bootloader-chain [1]. The chain >>> loads m1n1 (the Asahi Linux boot loader), u-boot and then grub. >>>=20 >>> A system roll-back used to work fine, but it stopped to work a while >>> ago. I'm not sure when that happened, because I rarley needed to >>> roll-back. But now that I don't have it anymore, I'm a bit nervous. >>>=20 >>> When I do a roll-back, this is what happens: >>>=20 >>> ``` >>> $ sudo guix system roll-back >>> Password: >>> guix system: error: efi-bootloader-chain: no such bootloader >>> ``` >>>=20 >>> It looks like the efi-bootloader-chain can't be found in the >>> %bootloaders variable of the (gnu bootloader) module. But that seems >>> strange, since it is defined in the same file (just a bit later). >>>=20 >>> Any ideas? >>>=20 >>> Thanks, Roman. >>>=20 >>> [1] https://github.com/asahi-guix/channel/blob/main/modules/asahi/guix/= bootloader/m1n1.scm >> >> What do you get from `which -a guix`? Make sure you haven't installed >> guix (the package) into a profile and are slowly making your way >> backwards in time each time you reconfigure. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmcU5gIfHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmW5CB/0QOcto3ct4uG7/ Agh/Unui8kPv50s1GWDUpdg/x19yg76sI4fOvkAkMDS3e8k0JNYNs/7f50miVq5a UTHFW8GjJvU5OJjCuZt1NoNpeoHP0P3dlq7rZhHiVGH3vKOvYH/BDI9jVZI7h4bB l7AcipBL6323lAxS5orwQtwtTictJnsQDsEmovoTwsqurFmLmSFYunAWfpfz6og0 GXQ3/iROpyLfaN14ER9m061mxpEwcGCfBM7BNDCwu2mfWw+XW1g4SVLTRuiw5cWz Oap78OfLUNxYv7AsmdEdUSfRgK0Fi6aimEjxnICnruImGF6X+kYo3A0SHtyo4JjB cDRAXQPD =UQ/T -----END PGP SIGNATURE----- --=-=-=--