all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nathan Dehnel <ncdehnel@gmail.com>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: help-guix@gnu.org
Subject: Re: GRUB fallback on boot failure
Date: Mon, 29 May 2023 19:02:59 -0500	[thread overview]
Message-ID: <CAEEhgEsrsDWFKwbqYUmZK+MoHYYGHAawkAu_D_EL824WzqMvOA@mail.gmail.com> (raw)
In-Reply-To: <CAFHYt56M3nZFow-cYup0HH2mBviLhReqV88e+v3MS6t-7indTA@mail.gmail.com>

>I believe it will work
The problem is I didn't see any documented way to write verbatim to
/etc/default/grub from the service, so I'm wondering if I need to
write a feature request

>Ideally, you would merely "roll back" to the system iteration you
identified as stable. Then the generation that 'guix system
list-generations' shows as (current) corresponds to the system you are
in, and grub.cfg will be rewritten to put that iteration on top. In
that workflow, there is no need to touch the default.
Is it possible to do this without user interaction in the event of a
failure to boot?

On Mon, May 29, 2023 at 6:29 PM Felix Lechner
<felix.lechner@lease-up.com> wrote:
>
> Hi Nathan,
>
> On Sat, May 27, 2023 at 3:52 PM Nathan Dehnel <ncdehnel@gmail.com> wrote:
> >
> > My understanding is this is done by adding the
> > following to /etc/default/grub:
> >
> > export GRUB_FALLBACK="1 2...{number of entries}"
> > GRUB_DEFAULT=saved
> > GRUB_SAVEDEFAULT=true
>
> I believe it will work, but booting older GRUB entries in Guix comes
> with a distinct inconvenience. To my knowledge, it is difficult to
> tell in which iteration you are once you have booted.
>
> Ideally, you would merely "roll back" to the system iteration you
> identified as stable. Then the generation that 'guix system
> list-generations' shows as (current) corresponds to the system you are
> in, and grub.cfg will be rewritten to put that iteration on top. In
> that workflow, there is no need to touch the default.
>
> Personally, I think it's easier to maintain (and update) but please
> feel free to experiment to find out what works best for you.
>
> Kind regards
> Felix


      reply	other threads:[~2023-05-30  0:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-27 22:51 GRUB fallback on boot failure Nathan Dehnel
2023-05-29 23:29 ` Felix Lechner via
2023-05-30  0:02   ` Nathan Dehnel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEEhgEsrsDWFKwbqYUmZK+MoHYYGHAawkAu_D_EL824WzqMvOA@mail.gmail.com \
    --to=ncdehnel@gmail.com \
    --cc=felix.lechner@lease-up.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.