From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8ASAIahVhV/rXwAA0tVLHw (envelope-from ) for ; Tue, 13 Oct 2020 07:22:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GGFQHahVhV9BbAAA1q6Kng (envelope-from ) for ; Tue, 13 Oct 2020 07:22:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 971D99402B1 for ; Tue, 13 Oct 2020 07:22:14 +0000 (UTC) Received: from localhost ([::1]:37986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSEdR-0005dP-HE for larch@yhetil.org; Tue, 13 Oct 2020 03:22:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS9ko-0006Af-9K for guix-devel@gnu.org; Mon, 12 Oct 2020 22:09:31 -0400 Received: from aibo.runbox.com ([91.220.196.211]:49228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kS9kk-0007s3-2p for guix-devel@gnu.org; Mon, 12 Oct 2020 22:09:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Transfer-Encoding:MIME-Version:Content-Type:Date:To: From:Subject:Message-ID; bh=vKbNgB9luGPOOgqOut0yg1pKz31xayHuJyz5LA+WpfY=; b=m 8DO2eU8fTH6r7jArabdGaHhnzmWqROpAngZ17QkNg2aKR7PR0RIF9irUXbeKum0e5uCGORBqtY95p CDTqLnN4+O+DLJpS2xyRL4XQQ34WO6MAOSAfN5VdXWZny+ZBoxXxV9WlzYw8rHxQ+fyF6NPd4hKSJ LAg8t/PNXn2gir42iLU+Dlskf3Ra4MRF1o+Xr5ZnuFqOvOmgvxgb8Yn7HmSxXda50bVmhc+sGCx4s oyE1QNlcEvxwwFSqsxRty7SfaqymyhVQ9DXh1+praeTHgN3tPPjT8jl7fMV9HpXrQhY3l4/CsqrqB aE0rHMWaHxU9Gug7Nz2LJyhuVhN7W9VVg==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1kS9ke-0001zG-E7 for guix-devel@gnu.org; Tue, 13 Oct 2020 04:09:20 +0200 Received: by submission03.runbox with esmtpsa [Authenticated alias (952555)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1kS9kd-0007qx-DQ; Tue, 13 Oct 2020 04:09:19 +0200 Message-ID: Subject: Guix Deploy Hacking From: Kurt I To: guix-devel@gnu.org Date: Mon, 12 Oct 2020 20:08:44 -0600 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=91.220.196.211; envelope-from=gitlabcanada@runbox.com; helo=aibo.runbox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/12 22:09:20 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Oct 2020 03:21:39 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=m 8DO2eU; dmarc=pass (policy=none) header.from=runbox.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: Jas/q90VObwk Greetings, I am attempting to use "Guix Deploy" as a replacement for Norton Ghost/SCCM, imaging type software. There are 2 tasks I'm working on: 1) Using deploy to update a machine - I don't understand the point of pushing packages to a system that disappear if you do a "guix system reconfigure" on that machine. To deal with this I have this code in my deploy file: ;; This will locate where the system config file is (define this-file (local-file (basename (assoc-ref (current-source-location) 'filename) "config.scm"))) ;; This replaces or creates a new system config file (simple-service 'config-file etc-service-type `(("lr.scm" ,this-file))) Perhaps an argument to "Guix Deploy" to optionally save the file you are pushing on the remote machine could be added? 2) I am trying to deploy a machine that is running the guix installer in cli mode off the USB key. I have done the following steps: 1) ifconfig up 2) passwd root 3) guix install guile-ssh 4) herd start ssh-daemon 5) I then have a script I run on the target machine: umount -a parted /dev/sda set 1 esp on mkfs.fat -F32 -n GUIX-BOOT /dev/sda1 mkswap --label=guix-swap /dev/sda2 swapon LABEL=guix-swap mkfs.ext4 -L guix-root /dev/sda3 mount --label=guix-root /mnt mkdir -p /mnt/etc mkdir -p /mnt/etc/guix/ mkdir -p /mnt/boot/efi mount --label=GUIX-BOOT /mnt/boot/efi sudo guix archive --authorize < key-publish.pub mkdir -p ~/.ssh/ cat key-ssh.pub > ~/.ssh/authorized_keys herd start cow-store /mnt echo "Ready for deploy!" 6) I then start the deploy process with "Guix Deploy" and it works for some of the process: guix deploy: deploying to lr... guix deploy: sending 9 store items (5 MiB) to '10.0.0.6'... guix deploy: sending 805 store items (4,269 MiB) to '10.0.0.6'... once it's done the big file transfer, I run into this: guix deploy: error: failed to deploy lr: build daemon handshake failed Is this an error I can get around or fix? or is "Guix Deploy" not meant for using on a machine that hasn't done "Guix System Init" yet? Thank you, Kurt