GNU bug report logs - #35266
system init doesn't work with -e

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: rendaw <7e9wc56emjakcm@HIDDEN>; dated Sun, 14 Apr 2019 10:03:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Apr 2019 10:02:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 14 06:02:16 2019
Received: from localhost ([127.0.0.1]:59862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hFbxn-0002oC-8E
	for submit <at> debbugs.gnu.org; Sun, 14 Apr 2019 06:02:15 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48417)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <7e9wc56emjakcm@HIDDEN>) id 1hFan3-0000xL-5i
 for submit <at> debbugs.gnu.org; Sun, 14 Apr 2019 04:47:06 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id D890F20CF2
 for <submit <at> debbugs.gnu.org>; Sun, 14 Apr 2019 04:46:59 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Sun, 14 Apr 2019 04:46:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h=to
 :from:subject:message-id:date:mime-version:content-type
 :content-transfer-encoding; s=fm3; bh=IZPdGep6FQgQEh7DRQgAgvfpli
 oCCcpIp/Z03a1NnwQ=; b=fh2+iDMIGS9g7Kh/oWgvM7wpR24vUFO3JbTNio4bHb
 7CisK3IRno+p6UZQ5sfDPSCYaM37qY7/h5LhnjmSQXElwyxL+cxPZlS7sJWfjVaE
 JFrv/5juXTIgoWC3bOP+akjXgY2LopQMxG4+lEPXGDhA8Iw3yVE1u3GsBwilxRIM
 V7uY+A+l6KBPr7V9q0VpOB0q/6kUGM+j8LFGUJWvcqeVcJmyjtISZb5tHwgHmSUM
 BqKRIMJbg8R8TkZvvC1/HqNy6wRWygGdHg3lrs0NUpvyJtLv15mrU+NqVL+3R2dd
 8q3ORP5VoxZrYIsrNGxh4sc9JQnQ5+YxtPGARsxTlEnQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=IZPdGe
 p6FQgQEh7DRQgAgvfplioCCcpIp/Z03a1NnwQ=; b=fEHH5G3rlzOUeKVF+Wm7cF
 t9OU7Y2MeRveI0/gWNRmpwhH4c5LTpUM2LS4liV8WqQ9u57+OUavlZu+GtcPtAQw
 fkvhCtW6Rswr5EK/Kwn9QjTaePeNjxPmXN+ZTqOBaBBaxIZTEB8u/UHzTJ50GxbG
 blEu2BNyLwZ/jDxgdzu7pJjSQD50scM3DG+TlwqF26ewWdrhQEwnzye0iH4PApw5
 p0ivM9eAhqBZO+ZebD3suPrRFRjAdTQSdRLlglGtJVd37XbCHMEKVc+toL7QAUg8
 VbAA3eYRHfTKKwbSRsjOgOQFB6Wq22FTyer5tI+XcOW5z0QwG9tRNNd9ZCDjXahA
 ==
X-ME-Sender: <xms:g_OyXIN0vEFYypgk9ZWIuKTSylt0Zw8IS71faWv9fYZbYul65bvwow>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvdejgddtlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepvffhuffkffgfgggtgfesthekredttd
 efjeenucfhrhhomheprhgvnhgurgifuceojegvleiftgehiegvmhhjrghktghmsehsrdhr
 vghnuggrfidrmhgvqeenucfkphepuddukedrvdegfedrvdefiedrudeileenucfrrghrrg
 hmpehmrghilhhfrhhomhepjegvleiftgehiegvmhhjrghktghmsehsrdhrvghnuggrfidr
 mhgvnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:g_OyXLQXMf75TBo4WRMBPsGnanypt6Rz8JRxL9rimPaVStVNn31XKg>
 <xmx:g_OyXA5yGAL1rD64y6T_E_9_PfqBKuL8K7285PJuzNbx2w9bdGFrmQ>
 <xmx:g_OyXN3iDW1Rdj4iX3TKnpDvO-i_Ek4WJPE5ZPj4ZO9Ol6_ZIL4rhg>
 <xmx:g_OyXCTHdsPNiBAmotK_BLHYrdwcgUgDgHdZug2aK3xvvPHKYnsBkw>
Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp
 [118.243.236.169])
 by mail.messagingengine.com (Postfix) with ESMTPA id 05E5D10319
 for <submit <at> debbugs.gnu.org>; Sun, 14 Apr 2019 04:46:58 -0400 (EDT)
To: submit <at> debbugs.gnu.org
From: rendaw <7e9wc56emjakcm@HIDDEN>
Subject: system init doesn't work with -e
Message-ID: <880d5365-ca15-e70a-97d2-fc20e5a1a713@HIDDEN>
Date: Sun, 14 Apr 2019 17:46:56 +0900
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.3
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 14 Apr 2019 06:02:13 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Package: guix
Version: 0.16.0

I discussed this on irc and was recommended to ask about it on the
mailing list - I decided to send it to the bug tracker because if it's
decided to be a bug there's one less step.

Loosely copying irc logs:

<rendaw> Hello!  I'm getting "wrong number of arguments for action
'init'" when I do "guix system init -e '(my-func arg1 arg2)' /mnt" - is
there something obvious I'm doing wrong?  I googled around but the only
result I found was logs from 2 years ago that are gone now
<rendaw> Also, the docs aren't specific in this regard - will the
filesystem created by "guix system init" be a bootable system?  Like
disk-image but on a mounted empty filesystem?  The other way I could
interpret the docs for that command are that "init" copies all the files
required to build the system (source files, guix binaries, etc) into a
directory for backup purposes
<kmicu> Hi rendaw. why do you pass -e flag to system init?
<rendaw> To pass arguments into the build
<rendaw> (drive uuids, secrets I don't want to commit to the system
config, etc)
<rendaw> I suppose I image it's the same reason one would want to pass
-e to system disk-image or system-vm or whatever

<samplet> Near the bottom of “guix/scripts/system.scm” it has a “case”
form that checks if the action is “init” and then makes sure the
argument count is exactly two.
<samplet> It would be pretty easy to fix, but I recommend contacting the
mailing list before doing anything, in case there is a good reason for it.

<kmicu> rendaw: ‘-e’ contributor didn’t handle init case, intention was
‘(guix-system): Allow commands taking a file as an argument to use an
expression instead.’ but there is a check for init that doesn’t allow
that currently.
<kmicu> rendaw: more at 5a72ddf176d53a7f4df922985d9d7fd4cfa160f5
<rendaw> kmicu: So I guess it sounds unintentional?
<samplet> rendaw: The main issue seems to be that the “process-action”
procedure assumes the target to be the second argument.  If there were
no configuration file, it would have to be the first.
<samplet> I’m not certain, but I bet with a little tweak to
“process-action”, you could remove the check and everything would work fine.
<rendaw> I suppose none of the other actions have a target parameter
<kmicu> rendaw: yep, you are basically the first user using init with
-e. Congrats xD
<rendaw> :D






Acknowledgement sent to rendaw <7e9wc56emjakcm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#35266; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.