Subject: Re: bug#21209: /gnu/store should be able to be a symlink, but it can't

From: [email-masked] (Ludovic Courtès)
Date: Tue, 18 Aug 2015 19:52:18 +0200

Kragen Javier Sitaker <[email-masked]> skribis:

> Apparently I can’t make /gnu/store a symlink:
>
>     : user@debian:~/pkgs/guix-0.8.1; time /usr/local/bin/guix pull
>     guix pull: error: build failed: `/gnu/store' is not a directory
>
>     real	0m0.431s
>     user	0m0.104s
>     sys	0m0.036s
>     : user@debian:~/pkgs/guix-0.8.1; ls -l /gnu/store
>     lrwxrwxrwx 1 root root 9 Aug  7 12:56 /gnu/store -> /gnustore
>     : user@debian:~/pkgs/guix-0.8.1; ls -Ldl /gnu/store
>     drwxrwxr-t 40 root guix-builder 49152 Aug  7 12:56 /gnu/store
>
> Is there a reason for this?

Yes, the daemon requires the canonical file name of the store.

> It’s inconvenient.  (My root SSD only has a couple gigs left.)

Then I would suggest using a bind mount instead of a symlink.

Does that work for you?

Thanks,
Ludo’.