guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is wrong with these few lines of guile code?


From: Christopher Baines
Subject: Re: What is wrong with these few lines of guile code?
Date: Tue, 31 Oct 2017 17:50:28 +0000

On Tue, 31 Oct 2017 14:41:46 +0100
Hartmut Goebel <address@hidden> 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: pgpQ6YWYmPpYz.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]