From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d95vk-0001Db-Au for guix-patches@gnu.org; Fri, 12 May 2017 04:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d95ve-0001dS-Mn for guix-patches@gnu.org; Fri, 12 May 2017 04:28:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d95ve-0001dO-J0 for guix-patches@gnu.org; Fri, 12 May 2017 04:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d95ve-0000PG-Dc for guix-patches@gnu.org; Fri, 12 May 2017 04:28:02 -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> Date: Fri, 12 May 2017 10:26:53 +0200 In-Reply-To: <20170512020243.5af54ed2@scratchpost.org> (Danny Milosavljevic's message of "Fri, 12 May 2017 02:02:43 +0200") Message-ID: <87d1betr8y.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 Hello, Danny Milosavljevic skribis: > On Tue, 09 May 2017 22:40:23 +0200 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> > -> It was ok with one bootloader, it's more problematic with multiple= =20=20 >> > bootloaders. For example switching between two generations with two >> > different bootloaders.=20=20 >>=20 >> OTOH, if it turns out to be safer to keep the current bootloader, which >> is likely I think, then perhaps it=E2=80=99s best to not try to change. >>=20 >> I mean, I prefer a rollback that doesn=E2=80=99t roll back the bootloade= r over a >> rollback that tries to do something smart and makes the system >> unbootable. > > If there is a switch between extlinux and grub, the bootloader config fil= e format (and name, too) will change. > > So if you do switch the config file out but don't switch the actual bootl= oader out it will not boot, right? Unless you regenerate the bootloader=E2=80=99s config file upon =E2=80=98switch-configuration=E2=80=99. > That means we have to take care that this doesn't happen. > > I still think an easy way would be to just always install the config file= s for all the bootloaders that we support. That way if there is a bootload= er that knows any of the configs, it will boot. Can't think of a downside = either. Yes, that=E2=80=99s also an option. The downside would be that if we regis= ter all of these as GC roots, then we end up retaining more than actually needed. Thanks, Ludo=E2=80=99.