From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: How to roll back a "guix system reconfigure"? Date: Sat, 02 Apr 2016 12:20:29 -0700 Message-ID: <87inzz7r7m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amR67-0008DY-SH for help-guix@gnu.org; Sat, 02 Apr 2016 15:20:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amR62-0005U6-Tt for help-guix@gnu.org; Sat, 02 Apr 2016 15:20:39 -0400 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:33474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amR62-0005Tt-LQ for help-guix@gnu.org; Sat, 02 Apr 2016 15:20:34 -0400 Received: by mail-pf0-x232.google.com with SMTP id 184so14728072pff.0 for ; Sat, 02 Apr 2016 12:20:34 -0700 (PDT) Received: from garuda ([172.58.41.128]) by smtp.gmail.com with ESMTPSA id c18sm28659913pfj.41.2016.04.02.12.20.32 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Apr 2016 12:20:33 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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"? I ask mainly because I'm just not sure what the "best practice" is surrounding system-level rollback at this time, and I'd love to know more. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXABt/AAoJEN1AmhXYIkadr+cQANfLEgMTSRNLOr7aGWwg7/4+ OX5POlTtL4St7IuO1xSgb/7aCbFD3JkhoxS5cSJ7L8GhDbyN/FZ4HBQIMGw+hc5B n/dDAXXup5kIvuKFVZjJIdgsoiEj/UKCjzJcMR/URQkXjF+UTl3UOVFyJLT36NBK VLiAPy6uFeFBLvGwUJIa2ehlOcCwvPcQFApiuyJ8l0NRNCtWeWgofDO0xuqJxv0Y Yj/OKxAzRCAaN2BJxD1ncwJJ5oQ9n6/lzC/qXB3Gpq7TrYGHdPLKy12Pp0/2oN3y ofQW/UH7L/v0b7JNuTUH4LDENI2X6D9Rwn7m5WeWpTkWMtvvEaUN1KXa6wRol6lM 9xlkMqIuHH1DUM3/Kg9Av5OybX/5/QTh+wUURhqjLuM6v9AUqOHYkgblk6r/A1Wj 1x+Niv6iz/dPPmK0WY30Qfklc7PEkXujup7kl6enUpqzHTD+SmGO2dPcrBoG/RMJ YHdIBchgKfJ1dSzB3swQDt59TFUwEQY327B/RGtgjOFsCke+etZOPpVIknvoM4ad HOZa1xslv+spEEqQHps89F1CjgAbsZaRIhb4Sj/OoKqFoW+yx2Z/hz6Q52RVGPnU sH/jX9gxxO0fzuUZ8UlZGutsZcB5KkeuU3P0x9apdJ3fiBYGuU7+DL706rrdBpHZ qrzOP374QlRexRCOAuK1 =EXd/ -----END PGP SIGNATURE----- --=-=-=--