From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: GRUB fallback mechanism [was Re: Brain storming cool Guix features] Date: Sat, 12 Jan 2019 16:58:16 +0100 Message-ID: <87fttxookn.fsf@elephly.net> References: <87bm4wwrku.fsf@dismail.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giLhN-0007p5-M1 for guix-devel@gnu.org; Sat, 12 Jan 2019 10:59:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giLhM-00036R-KK for guix-devel@gnu.org; Sat, 12 Jan 2019 10:59:49 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giLhM-0002fg-6S for guix-devel@gnu.org; Sat, 12 Jan 2019 10:59:48 -0500 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia Cc: "guix-devel@gnu.org" , L p R n d n swedebugia writes: > Leo Famulari skrev: (11 januari 2019 23:32:12 CET) >>On Mon, Jan 07, 2019 at 05:48:39PM +0100, L p R n d n wrote: >>> - Currently, I think the only way for a GuixSD installation to break >>is >>> if something goes wrong with the bootloader. Might be nice to have >>a >>> tool (in the install image I suppose) to recover the bootloader. >>> Maybe 'guix system init' can deal with that king of cases for now, >>I >>> don't know, but a dedicated command might be able to use the >>original >>> store, restore previous generations etc. >> >>Apparently GRUB has a feature that records a "fallback" system to boot >>if booting fails. >> >>Maybe when reconfiguring, Guix could set the current system as the >>fallback so that it would always boot. >> >>If we did that, we'd want to warn the user somehow... not sure how to >>achieve that. >> >>Discussion of this feature at NixOS: >> >>https://github.com/NixOS/nixpkgs/issues/26332 > > I don't think automatic fallback is a good idea because it unnecessarily = complicates a now well working simple part of the OS. > KISS is a nice principle. I think exposing this GRUB feature would be good, even if not enabled by default. It does not seem very complicated and can be very useful for some users. Unfortunately, it doesn=E2=80=99t help us when GRUB itself is broken with an upgrade, which I think is what was suggested earlier. -- Ricardo