From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: bug#36855: guix system switch-generation doesn't Date: Mon, 26 Aug 2019 14:51:27 -0400 Message-ID: <87woezoj3p.fsf@netris.org> References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@vllmrt.net> <87zhkkojfv.fsf@dustycloud.org> <877e7on3zd.fsf@sdf.lonestar.org> <87h86ry5j5.fsf@gmail.com> <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33677) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2K64-0004Gf-Rn for guix-devel@gnu.org; Mon, 26 Aug 2019 14:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2K63-00043r-RX for guix-devel@gnu.org; Mon, 26 Aug 2019 14:52:08 -0400 In-Reply-To: <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22's\?\= message of "Mon, 26 Aug 2019 12:07:29 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, 36855@debbugs.gnu.org Hi, Ludovic Court=C3=A8s writes: > Jakob, now that we generate scripts for the effectful bits of system > reconfiguration (one of these bits being service upgrades), couldn=E2=80= =99t we > take it one step further and store those scripts in the =E2=80=9Csystem= =E2=80=9D > derivation so we can run them eventually, notably upon > =E2=80=98switch-generation=E2=80=99? As a bonus, this approach might solve another issue I've observed: on my Guix system, where I build everything locally, several derivations are built *during* activation. Based on the terminal output, I get the impression that the system is compiling things while the system in an intermediate state, when some of the activation steps have been done, but not all of them. As I recall, the derivations built during activation are limited to compiled modules for Guile, but it still sometimes takes on the order of a minute or two on my laptop to complete the "activating system" steps. This seems suboptimal. The next time I update my system, I'll try to remember to keep a transcript of this, so that I can be more specific. Best, Mark