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>

Received: (at submit) by; 14 Apr 2019 10:02:16 +0000
From debbugs-submit-bounces <at> Sun Apr 14 06:02:16 2019
Received: from localhost ([]:59862
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1hFbxn-0002oC-8E
	for submit <at>; Sun, 14 Apr 2019 06:02:15 -0400
Received: from ([]:48417)
 by with esmtp (Exim 4.84_2)
 (envelope-from <7e9wc56emjakcm@HIDDEN>) id 1hFan3-0000xL-5i
 for submit <at>; Sun, 14 Apr 2019 04:47:06 -0400
Received: from compute6.internal (compute6.nyi.internal [])
 by mailout.nyi.internal (Postfix) with ESMTP id D890F20CF2
 for <submit <at>>; Sun, 14 Apr 2019 04:46:59 -0400 (EDT)
Received: from mailfrontend2 ([])
 by compute6.internal (MEProxy); Sun, 14 Apr 2019 04:46:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; h=to
 :content-transfer-encoding; s=fm3; bh=IZPdGep6FQgQEh7DRQgAgvfpli
 oCCcpIp/Z03a1NnwQ=; b=fh2+iDMIGS9g7Kh/oWgvM7wpR24vUFO3JbTNio4bHb
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=; h=content-transfer-encoding:content-type
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=IZPdGe
 p6FQgQEh7DRQgAgvfplioCCcpIp/Z03a1NnwQ=; b=fEHH5G3rlzOUeKVF+Wm7cF
X-ME-Sender: <xms:g_OyXIN0vEFYypgk9ZWIuKTSylt0Zw8IS71faWv9fYZbYul65bvwow>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvdejgddtlecutefuodetggdotefrodftvf
X-ME-Proxy: <xmx:g_OyXLQXMf75TBo4WRMBPsGnanypt6Rz8JRxL9rimPaVStVNn31XKg>
Received: from [] (
 by (Postfix) with ESMTPA id 05E5D10319
 for <submit <at>>; Sun, 14 Apr 2019 04:46:58 -0400 (EDT)
To: submit <at>
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
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>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
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.