From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sIuHN+h9yl4aewAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 14:00:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SLFkM+h9yl5iBwAA1q6Kng (envelope-from ) for ; Sun, 24 May 2020 14:00:08 +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 68000940C01 for ; Sun, 24 May 2020 14:00:08 +0000 (UTC) Received: from localhost ([::1]:55924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcrAc-0004Kx-2H for larch@yhetil.org; Sun, 24 May 2020 10:00:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcrAY-0004Kq-I0 for guix-patches@gnu.org; Sun, 24 May 2020 10:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55081) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcrAY-0002WX-7h for guix-patches@gnu.org; Sun, 24 May 2020 10:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcrAY-0007Ba-4l for guix-patches@gnu.org; Sun, 24 May 2020 10:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41011] [PATCH] gnu: grub: Support for network boot via tftp/nfs. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 May 2020 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41011 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Stefan Cc: Mathieu Othacehe , 41011@debbugs.gnu.org Received: via spool by 41011-submit@debbugs.gnu.org id=B41011.159032876427553 (code B ref 41011); Sun, 24 May 2020 14:00:02 +0000 Received: (at 41011) by debbugs.gnu.org; 24 May 2020 13:59:24 +0000 Received: from localhost ([127.0.0.1]:38394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcr9v-0007AL-MS for submit@debbugs.gnu.org; Sun, 24 May 2020 09:59:23 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:57462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcr9t-0007AC-OO for 41011@debbugs.gnu.org; Sun, 24 May 2020 09:59:22 -0400 Received: from localhost (80-110-127-207.cgn.dynamic.surfer.at [80.110.127.207]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 14FDD336378B; Sun, 24 May 2020 15:59:20 +0200 (CEST) Date: Sun, 24 May 2020 15:58:50 +0200 From: Danny Milosavljevic Message-ID: <20200524155850.3d24d358@scratchpost.org> In-Reply-To: <20200524154215.1fdb0a94@scratchpost.org> References: <9AAFEFF4-8ACE-4C95-975F-67C3F4FDAF81@vodafonemail.de> <87a72gi4kz.fsf@gmail.com> <1179D890-7D6C-43D8-A286-DA7A0F61D585@vodafonemail.de> <87h7w7cc55.fsf@gnu.org> <92DB8E2B-1CA2-41AE-9265-53C4F5337686@vodafonemail.de> <20200524125859.7efe5169@scratchpost.org> <078D1EA7-0875-4F24-AA49-D39CCDC77403@vodafonemail.de> <20200524154215.1fdb0a94@scratchpost.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/_AWrkuZtL2/_gqBdRFf+xvx"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.39 X-TUID: 5CdJv639i/en --Sig_/_AWrkuZtL2/_gqBdRFf+xvx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable > > But actually the bootloader-name field in /var/guix/profiles/system/par= ameters can't tell either, as it must be an older bootloader than the brand= new one. =20 Yes, but as the comment in the source says, the goal is to be able to boot = at all, not be perfect. So basically we could assume that if a previous system generation has used = a bootloader [name] (and we can still apparently run guix commands) then th= at bootloader actually could boot that system, and presumably can boot it a= gain if we installed it now. Might make sense to use the newest generation possible for that. (I think = even if you used the boot menu or guix system switch-generation, the newest= generation would still be present, just not current; so if that used the b= ootloader name of the newest generation that exists we might be safe) All this complication is just because we don't have the file name of the os= configuration (/etc/config.scm) in guix system delete-generations. What a= bout us just requiring it from the user and then installing the bootloader&= config that is specified there? That would be a lot less magical--it basic= ally would do the same that guix system reconfigure does now, then. (What about guix system switch-generation? What does it do regarding bootl= oader installation? *mumbles* *checks* Aha, it also only installs the boot= loader configuration) guix/scripts/system.scm says: > (bootloader (lookup-bootloader-by-name (system-bootloader-name))) What is that (system-bootloader-name) magical parameterless call? Which ge= neration does that use? *shakes head* Our source code there totally could use some more comments... --Sig_/_AWrkuZtL2/_gqBdRFf+xvx Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7KfZoACgkQ5xo1VCww uqVbhQf/UUenwtb/ND4d45bfRLremUqigBqxIdh/dq260g7x7MkXACbmG345qofQ xBw92W2nnFA9AQHt35Dtxo+qoQig3evY6fUr559XxINAdcdaV3UzM7iDr2XAz53S QNOWkYSE+G8Z7OowCYkc5BmP9VJRfL0EMfKstuBLrg549oZoc6FdDOkatQt+RKTZ sLC31aBIpr3lArgqk4DNOo82ABrtIgQ86ZBBqB20epbGpYo2LQgDpdGA3e8Et279 2vHKNQxD5hVUCpeexaMwp6tNn6tmNimco+/s9iNSM8VG9mxSYtcMraIA9/J5IMyz HQdP6TrZ9zezLP4mhkrKG1ch8zJeVQ== =i3Ii -----END PGP SIGNATURE----- --Sig_/_AWrkuZtL2/_gqBdRFf+xvx--