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

Reply via email to