From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MGaOCP8p02GjZgEAgWs5BA (envelope-from ) for ; Mon, 03 Jan 2022 17:53:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OOkABv8p02El+gAA9RJhRA (envelope-from ) for ; Mon, 03 Jan 2022 17:53:19 +0100 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 A5E6B30EE1 for ; Mon, 3 Jan 2022 17:53:18 +0100 (CET) Received: from localhost ([::1]:34426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4QaD-0001pe-S4 for larch@yhetil.org; Mon, 03 Jan 2022 11:53:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4QZy-0001pU-LR for bug-guix@gnu.org; Mon, 03 Jan 2022 11:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4QZy-0002T1-7e for bug-guix@gnu.org; Mon, 03 Jan 2022 11:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4QZy-00017O-1H for bug-guix@gnu.org; Mon, 03 Jan 2022 11:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52517: inconstency with offloading Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 03 Jan 2022 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52517 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Received: via spool by 52517-submit@debbugs.gnu.org id=B52517.16412287794290 (code B ref 52517); Mon, 03 Jan 2022 16:53:01 +0000 Received: (at 52517) by debbugs.gnu.org; 3 Jan 2022 16:52:59 +0000 Received: from localhost ([127.0.0.1]:36030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4QZv-000178-Gf for submit@debbugs.gnu.org; Mon, 03 Jan 2022 11:52:59 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:33904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4QZs-00016r-Le for 52517@debbugs.gnu.org; Mon, 03 Jan 2022 11:52:58 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E775116B; Mon, 3 Jan 2022 17:52:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HwCnUJ7IERKj; Mon, 3 Jan 2022 17:52:48 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B6C68120; Mon, 3 Jan 2022 17:52:47 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y24lol6r.fsf@gmail.com> Date: Mon, 03 Jan 2022 17:52:47 +0100 In-Reply-To: <87y24lol6r.fsf@gmail.com> (zimoun's message of "Wed, 15 Dec 2021 18:02:52 +0100") Message-ID: <87sfu4g3s0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: E775116B X-Spamd-Result: default: False [0.53 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; R_MIXED_CHARSET(0.63)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52517@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641228798; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=uxPfL3hChRV/18RWImuQk/bGaiQxiNEJU1kLI/UWrdw=; b=Fy/CyZfUMi+7k1pDcRgcyUwpyMIUB4nsi4p/hti7AqkDcvCCYJoxJiAscDgI/y5hCJlosu TY77CRAxNOdr6mYLjby6J+vd+spASp5PfsBBzTse4JvSMK/QxB14z9apC9mOqZsDtTg184 AaFflRGhqqvcSDALLyN4zrArfrY0CLMVUm1RiqE7Me3nMza3MsPX8w3D6t7gapg/EwzM4p L6gZ1McwNjvuEdi8NRPoawoONNHJQxKxFhu5/AXq1kXdrV2qRYGW54T8bNc9NOuLypzdqP jt8gJHYkzqq/tW30JCcD951XD6ax++/xJcB5WeHFn2dgVblm4erzMAOcEFi+GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641228798; a=rsa-sha256; cv=none; b=MqNf4guLKKmWiKbhO+9wH7F2P9YNlm5weYGdZp3pZQ00a6eIYnwME0a+Wdrp8YG52XqSn0 r/e7cYw8GacGo1aejL1A91UfcM6M4BKSKxIVWzC4rRD5FAAGq+mcd6TQhI31zzICMXIZow j+dkDJUr0Ev+/fraOCJYRkc1UuiblzuUQ3JepU+NsMnK953oWwwdXqYNLdPYp+rZtGW8Ad OgE3fmlfHipxcvvjuqk6JE8fDWf2GsQYar0GsQ1y7qUihY+5YQ0d0GmhZagPqggWRcdp21 ZY6/bZ8L5XQ2IgcbcF5+LGVzjj1XTq6PIBW4HDpzO48ENMtPF6Q7vQBwum5FIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A5E6B30EE1 X-Spam-Score: -2.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: +Sxt2wIZF159 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, zimoun skribis: > The manual provides [1] the example: > > (build-machine > (name "armeight.example.org") > (systems (list "aarch64-linux")) > (host-key "ssh-rsa AAAAB3Nza=E2=80=A6") > (user "alice") > (private-key > (string-append (getenv "HOME") > "/.ssh/identity-for-guix"))) > > > but what is not clear is 'getenv' from who. Concretly, adding 'pk' it > reads: > > $ guix offload test > > ;;; ("/home/simon") > guix offload: testing 2 build machines defined in '/etc/guix/machines.scm= '... > > > however, when really building with offload: > > $ guix build -L /tmp/mine r-cipr > The following derivation will be built: > /gnu/store/mzixy5hhx79xx33k03acaasml87c0knc-r-cipr-0.1.0-1.4b01bb8.drv > > ;;; ("/root") This is because guix-daemon spawns =E2=80=98guix offload=E2=80=99 as root. But yeah, I agree that the example contributes to the confusion. How about changing the manual as shown below? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index 43549da388..9c1f30e83f 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1250,9 +1250,10 @@ The @file{/etc/guix/machines.scm} file typically looks like this: (systems (list "aarch64-linux")) (host-key "ssh-rsa AAAAB3Nza@dots{}") (user "alice") - (private-key - (string-append (getenv "HOME") - "/.ssh/identity-for-guix")))) + + ;; Remember 'guix offload' is spawned by + ;; 'guix-daemon' as root. + (private-key "/root/.ssh/identity-for-guix"))) @end lisp @noindent --=-=-=--