unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nathan Dehnel <ncdehnel@gmail.com>
To: raingloom <raingloom@riseup.net>, guix-devel@gnu.org
Subject: watchdog triggered auto-rollback
Date: Mon, 27 May 2024 19:52:27 -0500	[thread overview]
Message-ID: <CAEEhgEvxBfju0brX9kB6TK8Caok56+Cs2i4aOvFCRZ95SJN7mQ@mail.gmail.com> (raw)

>Would others find this useful?
I would 100% use this.

>Where in the stack would this be solved?
I think there's two places for rollbacks with two different purposes

GRUB: https://www.gnu.org/software/grub/manual/grub/html_node/fallback.html
GRUB supports falling back to another boot entry if the machine fails
to boot. This could be integrated with guix so GRUB falls back to a
previous guix system generation. This covers the case of "we can't
start a watchdog service because the system won't boot".

SSH watchdog: a shepherd service that tests SSH connectivity, and then
executes "guix system roll-back && reboot". SSH access is a rough
approximation for "the system is working", as kernel, init, and all
manner of networking services, DHCP, DNS, VPN, etc. must work for SSH
to work. And if SSH works then it provides a means for a user to fix
their system anyways.


             reply	other threads:[~2024-05-28  0:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  0:52 Nathan Dehnel [this message]
2024-05-28  1:46 ` watchdog triggered auto-rollback Richard Sent
2024-05-28 10:10   ` Attila Lendvai
2024-05-29 13:45     ` Richard Sent
2024-05-29 20:41       ` Attila Lendvai
  -- strict thread matches above, loose matches on Subject: below --
2024-05-24 12:50 raingloom
2024-05-25 16:58 ` Richard Sent

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=CAEEhgEvxBfju0brX9kB6TK8Caok56+Cs2i4aOvFCRZ95SJN7mQ@mail.gmail.com \
    --to=ncdehnel@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=raingloom@riseup.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).