From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d81oL-0000Yh-Eb for guix-patches@gnu.org; Tue, 09 May 2017 05:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d81oI-0005dX-AY for guix-patches@gnu.org; Tue, 09 May 2017 05:52:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d81oI-0005dS-6o for guix-patches@gnu.org; Tue, 09 May 2017 05:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d81oH-0002wI-Tv for guix-patches@gnu.org; Tue, 09 May 2017 05:52: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> Date: Tue, 09 May 2017 11:51:01 +0200 In-Reply-To: <871sryqy3g.fsf@gmail.com> (Mathieu Othacehe's message of "Tue, 09 May 2017 09:38:11 +0200") Message-ID: <87bmr29x4q.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: Mathieu Othacehe Cc: 26339@debbugs.gnu.org, David Craven Hi Mathieu, Mathieu Othacehe skribis: > I implemented most of this split between > bootloader-configuration/bootloader and it's waaay better ! Woow, that was fast! :-) > I still have one small concern. In following patches, I added boot-type > (and boot-device) to parameters file. This allows to re-install the > correct bootloader (on the correct device) when using "guix system > switch-generation". > > What field could we store in parameters to be able to restore the > correct bootloader ?=20 Good question! I guess we need to store the name of the bootloader type in the =E2=80=9Cparameters=E2=80=9D file, and then look it up upon switch-g= eneration? But maybe we also need to store a reference to the bootloader package so that it isn=E2=80=99t GC=E2=80=99d? > My initial idea was to add every to a list, a look it up by > name to restore the correct bootloader. So we could store the bootloader > name in the parameters file. This sounds a bit hack, do you have a > better idea ? No better idea, sounds like a good start. I think the most important is to make sure that our current use case, where people always use GRUB, doesn=E2=80=99t break. Thanks, Ludo=E2=80=99.