all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: How to roll back a "guix system reconfigure"?
Date: Sat, 02 Apr 2016 23:20:10 +0300	[thread overview]
Message-ID: <87r3envk3p.fsf@gmail.com> (raw)
In-Reply-To: <87inzz7r7m.fsf@gmail.com> (Chris Marusich's message of "Sat, 02 Apr 2016 12:20:29 -0700")

Chris Marusich (2016-04-02 22:20 +0300) wrote:

> Hi,
>
> After running a "guix system reconfigure", it is possible to boot to a
> previous version of the system by manually selecting it from the GRUB
> menu.  However, if you want to permanently roll back to a previous
> version (e.g., because something broke), it's a nuisance to do this
> every time you boot.  Of course, assuming guix is still working after
> the reconfigure, you could simply do another "guix system reconfigure"
> using the previous version of your operating system configuration file,
> but it seems like that shouldn't be necessary.
>
> What is the recommended way to roll back after a "guix system
> reconfigure"?  Is it sufficient to manually edit the grub.cfg file to
> remove all mention of the generations after the one to which you want to
> roll back?  If you do that, will the gc root(s) associated with the bad
> configuration stay around forever?  Would it make sense to add a command
> like "guix system roll-back" or "guix system switch-generation", similar
> to "guix package --roll-back" and "guix package --switch-generation"?

Yes, I think these things will be added eventually.  It's just that no
one has not been interested enough in these features yet to add them.

Currently there are 2 ways to perform a system roll-back:

1. Manually: system generations are just symlinks in "/var/guix/profiles"
directory, so you can change "/var/guix/profiles/system" link to point
to any previous generation.

2. Using Emacs interface (you have to run emacs as root):

 - M-x guix-system-generations;
 - Press "c" on a generation you want to make current.

-- 
Alex

  reply	other threads:[~2016-04-02 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 19:20 How to roll back a "guix system reconfigure"? Chris Marusich
2016-04-02 20:20 ` Alex Kost [this message]
2016-04-04  8:48   ` Ludovic Courtès

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=87r3envk3p.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=cmmarusich@gmail.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.