From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d98sc-00072h-Nl for guix-patches@gnu.org; Fri, 12 May 2017 07:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d98sY-0003Fk-1M for guix-patches@gnu.org; Fri, 12 May 2017 07:37:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d98sX-0003FS-UO for guix-patches@gnu.org; Fri, 12 May 2017 07:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d98sX-0006uW-OZ for guix-patches@gnu.org; Fri, 12 May 2017 07:37:01 -0400 Subject: bug#26339: [PATCH 02/18] system: Add extlinux support. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170402135242.2958-1-m.othacehe@gmail.com> <20170402135242.2958-2-m.othacehe@gmail.com> <87mvanjepx.fsf@gnu.org> <871sryqy3g.fsf@gmail.com> <87bmr29x4q.fsf@gnu.org> <864lwuje63.fsf@gmail.com> <87inl9zruw.fsf@gnu.org> <20170512020243.5af54ed2@scratchpost.org> <87d1betr8y.fsf@gnu.org> <20170512132630.1eeb75bc@scratchpost.org> Date: Fri, 12 May 2017 13:36:29 +0200 In-Reply-To: <20170512132630.1eeb75bc@scratchpost.org> (Danny Milosavljevic's message of "Fri, 12 May 2017 13:26:30 +0200") Message-ID: <87k25ms3wi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 26339@debbugs.gnu.org Hi, Danny Milosavljevic skribis: > On Fri, 12 May 2017 10:26:53 +0200 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> > If there is a switch between extlinux and grub, the bootloader config = file format (and name, too) will change. >> > >> > So if you do switch the config file out but don't switch the actual bo= otloader out it will not boot, right?=20=20 >>=20 >> Unless you regenerate the bootloader=E2=80=99s config file upon >> =E2=80=98switch-configuration=E2=80=99. > > Yes, for the last-guix-installed bootloader (presumably the still-install= ed one). Good point. > > That would mean only the bootloader type of the newest system generation = would be checked - also when restoring older generations. > > Can the newest system generation be deleted? Then eventually Guix could = read the wrong bootloader type (of a bootloader which isn't actually instal= led at the time). The newest generation can be deleted, but the current one cannot (it=E2=80= =99s possible that the current one is not the newest if you picked an old entry in the boot menu.) So it should probably pick the current (not the newest) bootloader type. Ludo=E2=80=99.