From: Christopher Baines <mail@cbaines.net>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: What is wrong with these few lines of guile code?
Date: Tue, 31 Oct 2017 17:50:28 +0000 [thread overview]
Message-ID: <20171031175028.71f40cc5@cbaines.net> (raw)
In-Reply-To: <a11d7a2e-35ff-1333-9238-c332c6d8d163@crazy-compilers.com>
[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]
On Tue, 31 Oct 2017 14:41:46 +0100
Hartmut Goebel <h.goebel@crazy-compilers.com> wrote:
> Hallo,
>
> i replaced the code of gnu/system/install.scm(make-cow-store target) [1]
> with the code below. Now when running this code (which is triggered by
> "herd start cow-store /mnt" in the installation-os)|I get this error:
> |
>
> herd: exception caught while executing 'start' on service 'cow-store':
> ERROR: Unbound variable: gexp
>
> What is wrong with this code? (Parentheses are matching, of course :-)
...
> ;; Mount the overlay, then atomically make it the store.
> (mount "none" "/.rw-store" "overlay"
> (string-append "lowerdir=" #$(%store-prefix)
> "upperdir=" #~rw-dir ","
> "workdir=" #~work-dir))
Here, as rw-dir and work-dir are just inside the gexp, you don't need
to ungexp, or gexp them (as is being done here), so I'd remove the #~.
This matches the error you're getting, as #~ is short for (gexp ...) as
I understand it.
> (mount "/.rw-store" #$(%store-prefix) "" MS_MOVE)
> (rmdir "/.rw-store"))))
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
next prev parent reply other threads:[~2017-10-31 17:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 13:41 What is wrong with these few lines of guile code? Hartmut Goebel
2017-10-31 14:02 ` Mike
2017-10-31 17:50 ` Christopher Baines [this message]
2017-11-03 14:34 ` Hartmut Goebel
2017-11-03 16:09 ` Ricardo Wurmus
2017-11-04 11:46 ` Pjotr Prins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171031175028.71f40cc5@cbaines.net \
--to=mail@cbaines.net \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).