From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GNGRFv7mkV+9LwAA0tVLHw (envelope-from ) for ; Thu, 22 Oct 2020 20:09: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 mp1 with LMTPS id sPjNEP7mkV/jOgAAbx9fmQ (envelope-from ) for ; Thu, 22 Oct 2020 20:09: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 8648D940149 for ; Thu, 22 Oct 2020 20:09:33 +0000 (UTC) Received: from localhost ([::1]:53284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVgtw-0006Br-Eg for larch@yhetil.org; Thu, 22 Oct 2020 16:09:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVgtS-0006Bk-Ii for bug-guix@gnu.org; Thu, 22 Oct 2020 16:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVgtS-0007kk-7h for bug-guix@gnu.org; Thu, 22 Oct 2020 16:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVgtS-0008Sl-1h for bug-guix@gnu.org; Thu, 22 Oct 2020 16:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44101: Unable to use /dev/disk/by-id/ symlinks with u-boot and guix system reconfigure Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 22 Oct 2020 20:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44101 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 44101-submit@debbugs.gnu.org id=B44101.160339734132524 (code B ref 44101); Thu, 22 Oct 2020 20:09:02 +0000 Received: (at 44101) by debbugs.gnu.org; 22 Oct 2020 20:09:01 +0000 Received: from localhost ([127.0.0.1]:53995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVgtQ-0008SW-Ol for submit@debbugs.gnu.org; Thu, 22 Oct 2020 16:09:01 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:36524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVgtO-0008SJ-Ur for 44101@debbugs.gnu.org; Thu, 22 Oct 2020 16:08:59 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 0C05C1AA41; Thu, 22 Oct 2020 13:08:53 -0700 (PDT) From: Vagrant Cascadian In-Reply-To: <87zh4ezo7k.fsf@gnu.org> References: <87a6wgrfnp.fsf@ponder> <87zh4ezo7k.fsf@gnu.org> Date: Thu, 22 Oct 2020 13:08:45 -0700 Message-ID: <87k0vi9g6q.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44101@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: HkK+p7aNrQwL --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2020-10-22, Mathieu Othacehe wrote: > Hey Vagrant, > >> I'm writing this from memory now, but I can also boot the machines at a >> later point and get the exact configurations, if needed. > > Sorry for breaking your use-case. Recently I have split up the > bootloader installation in two distinct parts: Thanks for your work on it, even if it resulted in a regression. :) > - Installing a bootloader directly on a mounted directory. > - Installing a bootloader on a raw-image or device. > > Depending on the bootloader type, one or both of the methods are > supported. u-boot does not really support the first method, so the > patch you are mentioning is disabling this method. > > The problem is while reconfiguring, the first method only is used. The > attached patch tries to fallback to the second method if the first one > is not defined. I don't quite understand why that would be the issue here; guix system reconfigure works fine when /dev/mmcblkN is specified target in the system config.scm, just not when the target is /dev/disk/by-id/... My wild guess was something was checking for a literal block device, and failing with a symlink pointing to a block device. Trying your patch gets me a backtrace, unfortunately... With the bootloader section... (bootloader (bootloader-configuration (target "/dev/disk/by-id/mmc-SDU64_0xbaf3002e") (bootloader u-boot-pinebook-bootloader) )) And your patch applied on top of 3e09453884efa82ef97b8ec6e34470c67a1206a7... $ sudo -E ./pre-inst-env guix system reconfigure --keep-going ~/pinebook-10= 80p-desktop.scm ... waiting for locks or build slots... building /gnu/store/n17lkvs6vhq0x16mk0rxnv4j5ifvrlyr-switch-to-system.scm.d= rv... making '/gnu/store/vc3bzajlv0yxrdjmqph4sikzqkywvfq1-system' the current sys= tem... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/gssnxbhwa9dygn1i6i46j81ww5gczzav-etc... The following derivation will be built: /gnu/store/s19y61jrdys760zccxm2qiiqjpcv1fcx-install-bootloader.scm.drv building /gnu/store/s19y61jrdys760zccxm2qiiqjpcv1fcx-install-bootloader.scm= .drv... Backtrace: In guix/scripts/system.scm: 1339:8 19 (_) In guix/status.scm: 776:4 18 (call-with-status-report _ _) In guix/scripts/system.scm: 1172:4 17 (_) In ice-9/boot-9.scm: 1736:10 16 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 631:37 15 (thunk) 1300:8 14 (call-with-build-handler _ _) 1300:8 13 (call-with-build-handler _ _) 1300:8 12 (call-with-build-handler _ _) 1300:8 11 (call-with-build-handler _ _) 1300:8 10 (call-with-build-handler _ _) 1300:8 9 (call-with-build-handler # =E2=80=A6) 2042:24 8 (run-with-store # =E2=80= =A6) In guix/scripts/system.scm: 842:13 7 (_ _) 844:15 6 (_ _) 750:13 5 (_ _) In ice-9/boot-9.scm: 152:2 4 (with-fluid* _ _ _) In unknown file: 3 (primitive-load "/gnu/store/81w2h9zd6b5q0ddchc0wr6vph22=E2=80= =A6") In ice-9/eval.scm: 619:8 2 (_ #(#(# "//v=E2=80=A6") = #)) In ice-9/boot-9.scm: 1669:16 1 (raise-exception _ #:continuable? _) 1669:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1669:16: In procedure raise-exception: ERROR: 1. &i/o-filename: "/dev/disk/by-id/mmc-SDU64_0xbaf3002e" It also fails when target is /dev/mmcblk1. So, clearly this is some other issue... live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCX5HmzwAKCRDcUY/If5cW qiOzAQDdEVhHzTBXIfAZz+SZ2SbSxwaBuLWwX+LygW6xGZQQugEAu0YT5nNddiq+ yG75SXiFsm6GsBHjreSmX8NHnOK9AAE= =72AU -----END PGP SIGNATURE----- --=-=-=--