From patchwork Wed Jul 24 16:33:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jakob L. Kreuze" X-Patchwork-Id: 14753 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DA0EC1726D; Wed, 24 Jul 2019 17:37:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A1A4E1726B for ; Wed, 24 Jul 2019 17:37:08 +0100 (BST) Received: from localhost ([::1]:53260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqKGK-0005Wk-7S for patchwork@mira.cbaines.net; Wed, 24 Jul 2019 12:37:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37752) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqKGF-0005WZ-2W for guix-patches@gnu.org; Wed, 24 Jul 2019 12:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqKGE-0000QX-5g for guix-patches@gnu.org; Wed, 24 Jul 2019 12:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqKGE-0000Q0-2z for guix-patches@gnu.org; Wed, 24 Jul 2019 12:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hqKGD-0002KA-Un for guix-patches@gnu.org; Wed, 24 Jul 2019 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36555] [PATCH v6 0/3] Refactor out common behavior for system reconfiguration. Resent-From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 Jul 2019 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36555 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 36555-submit@debbugs.gnu.org id=B36555.15639861698861 (code B ref 36555); Wed, 24 Jul 2019 16:37:01 +0000 Received: (at 36555) by debbugs.gnu.org; 24 Jul 2019 16:36:09 +0000 Received: from localhost ([127.0.0.1]:37927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqKFN-0002Iq-Cc for submit@debbugs.gnu.org; Wed, 24 Jul 2019 12:36:09 -0400 Received: from mx.sdf.org ([205.166.94.20]:53616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqKFJ-0002Ib-Ra for 36555@debbugs.gnu.org; Wed, 24 Jul 2019 12:36:07 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6OGZsEh020476 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Wed, 24 Jul 2019 16:36:04 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) References: <87imsci9sj.fsf@sdf.lonestar.org> <87y3129qsn.fsf@gnu.org> <87sgr9bziq.fsf@sdf.lonestar.org> <87pnmc7nt1.fsf@gnu.org> <8736j7nwcb.fsf@sdf.lonestar.org> <87muhfjm14.fsf@gnu.org> <87ftn63l7d.fsf@sdf.lonestar.org> <87v9w1zgon.fsf_-_@sdf.lonestar.org> <87y30v3qke.fsf@sdf.lonestar.org> <871rylrjt8.fsf_-_@sdf.lonestar.org> <87wogdq575.fsf_-_@sdf.lonestar.org> <87r26lq531.fsf_-_@sdf.lonestar.org> <87muh9q51e.fsf_-_@sdf.lonestar.org> <87wogc4v6e.fsf@gnu.org> <87zhl69box.fsf@sdf.lonestar.org> <87o91laojb.fsf_-_@sdf.lonestar.org> <87k1c9aofq.fsf_-_@sdf.lonestar.org> <87ftmxaodv.fsf_-_@sdf.lonestar.org> <87ftmwz8mc.fsf@gnu.org> <877e889tyj.fsf@sdf.lonestar.org> <87tvbc8dgi.fsf@sdf.lonestar.org> Date: Wed, 24 Jul 2019 12:33:19 -0400 In-Reply-To: <87tvbc8dgi.fsf@sdf.lonestar.org> (Jakob L. Kreuze's message of "Tue, 23 Jul 2019 20:48:29 -0400") Message-ID: <87muh3bdf4.fsf_-_@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 36555@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Updated to use the newer 'lowered-gexp' API, moved the 'guard' clause, and confirmed that everything still works. I think that's everything for this series. Jakob L. Kreuze (3): guix system: Add 'reconfigure' module. guix system: Reimplement 'reconfigure'. tests: Add reconfigure system test. Makefile.am | 1 + gnu/local.mk | 1 + gnu/machine/ssh.scm | 189 ++------------------ gnu/services/herd.scm | 6 + gnu/tests/reconfigure.scm | 262 ++++++++++++++++++++++++++++ guix/scripts/system.scm | 188 +++++--------------- guix/scripts/system/reconfigure.scm | 237 +++++++++++++++++++++++++ tests/services.scm | 4 - 8 files changed, 560 insertions(+), 328 deletions(-) create mode 100644 gnu/tests/reconfigure.scm create mode 100644 guix/scripts/system/reconfigure.scm