From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Seeking guidance regarding system roll-back and switch-generation Date: Mon, 25 Jul 2016 10:06:32 +0200 Message-ID: <87fuqyta47.fsf@gnu.org> References: <87twfo7h5v.fsf@gmail.com> <87vb03nlq8.fsf@gnu.org> <874m7mvxcz.fsf@gmail.com> <87vazxk70h.fsf@gnu.org> <87mvl6nsnw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRauP-0007GR-3o for guix-devel@gnu.org; Mon, 25 Jul 2016 04:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRauK-0007PS-TU for guix-devel@gnu.org; Mon, 25 Jul 2016 04:06:40 -0400 In-Reply-To: <87mvl6nsnw.fsf@gmail.com> (Chris Marusich's message of "Sun, 24 Jul 2016 23:22:27 -0700") 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: Chris Marusich Cc: guix-devel@gnu.org Hi Chris, Chris Marusich skribis: >> The output of =E2=80=98guix system build=E2=80=99 contains the =E2=80=98= parameters=E2=80=99 file, which >> is enough to generate grub.cfg (see =E2=80=98previous-grub-entries=E2=80= =99 in (guix >> scripts system)). > > What if someone specifies extra "menu-entries" in their operating system > configuration file? (as described in "(guix) GRUB Configuration")? > Those extra entries don't appear to be stored in the parameters file. They=E2=80=99re not stored there, but that=E2=80=99s fine: since there=E2= =80=99s only one grub.cfg, we just store the menu entries that are defined in =E2=80=98operating-system=E2=80=99 at the moment =E2=80=98guix system recon= figure=E2=80=99 is run. This part is =E2=80=9Cimperative=E2=80=9D in nature. > It would be very convenient if we could just store the entire > in the built system output (e.g., the parameters > file). Is that possible? I don=E2=80=99t think it=E2=80=99s useful because what matters is the that we see in the new operating system. What do you think? >> However, the activation script is indeed missing. We can add it to the >> output of =E2=80=98guix system build=E2=80=99 by extending =E2=80=98syst= em-service-type=E2=80=99: [...] >> This way we have direct access to each generation=E2=80=99s activation s= cript >> and we should be fine with (3). >> >> WDYT? > > I'm afraid I don't yet know enough about gexps and the activation > process to give an informed opinion on that suggestion. After I finish > the first milestone (switch symlinks and rebuild grub.cfg), I'll study > those topics in more detail and revisit your proposal. Sure. Thank you! Ludo=E2=80=99.