unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21209: /gnu/store should be able to be a symlink, but it can't
@ 2015-08-07 16:03 Kragen Javier Sitaker
  2015-08-08  4:51 ` Claes Wallin
  2015-08-18 17:52 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Kragen Javier Sitaker @ 2015-08-07 16:03 UTC (permalink / raw)
  To: 21209

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?  It’s inconvenient.  (My root SSD only has
a couple gigs left.)

I’m working around that by directly mounting the /gnustore partition
under /gnu/store now.

    : user@debian:~/pkgs/guix-0.8.1; sudo vi /etc/fstab
    : user@debian:~/pkgs/guix-0.8.1; grep store /etc/fstab
    /tb/gnustore.ext4 /gnu/store     ext4    loop            2       3
    : user@debian:~/pkgs/guix-0.8.1; sudo umount /gnustore
    : user@debian:~/pkgs/guix-0.8.1; sudo rm /gnu/store
    : user@debian:~/pkgs/guix-0.8.1; sudo mkdir /gnu/store
    : user@debian:~/pkgs/guix-0.8.1; sudo mount -a

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21209: /gnu/store should be able to be a symlink, but it can't
  2015-08-07 16:03 bug#21209: /gnu/store should be able to be a symlink, but it can't Kragen Javier Sitaker
@ 2015-08-08  4:51 ` Claes Wallin
  2015-08-08  9:31   ` Pjotr Prins
  2015-08-18 17:52 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Claes Wallin @ 2015-08-08  4:51 UTC (permalink / raw)
  To: Kragen Javier Sitaker; +Cc: 21209

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

Not commenting on the underlying problem, but on your workaround.

On 07-Aug-2015 11:22 pm, "Kragen Javier Sitaker" <kragen@canonical.org>
wrote:
>
> Apparently I can’t make /gnu/store a symlink:

[ . . . ]

> I’m working around that by directly mounting the /gnustore partition
> under /gnu/store now.

[ . . . ]

>     /tb/gnustore.ext4 /gnu/store     ext4    loop            2       3

You don't need to make a new file system and a loop mount. You could just
make a bind mount.

[-- Attachment #2: Type: text/html, Size: 715 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21209: /gnu/store should be able to be a symlink, but it can't
  2015-08-08  4:51 ` Claes Wallin
@ 2015-08-08  9:31   ` Pjotr Prins
  2015-08-08 15:48     ` Kragen Javier Sitaker
  0 siblings, 1 reply; 5+ messages in thread
From: Pjotr Prins @ 2015-08-08  9:31 UTC (permalink / raw)
  To: Claes Wallin; +Cc: 21209, Kragen Javier Sitaker

it is by design that you can't symlink.

On Sat, Aug 08, 2015 at 06:51:17AM +0200, Claes Wallin wrote:
>    Not commenting on the underlying problem, but on your workaround.
> 
>    On 07-Aug-2015 11:22 pm, "Kragen Javier Sitaker" <[1]kragen@canonical.org>
>    wrote:
>    >
>    > Apparently I can’t make /gnu/store a symlink:
> 
>    [ . . . ]
> 
>    > I’m working around that by directly mounting the /gnustore partition
>    > under /gnu/store now.
> 
>    [ . . . ]
> 
>    >     /tb/gnustore.ext4 /gnu/store     ext4    loop            2       3
> 
>    You don't need to make a new file system and a loop mount. You could just
>    make a bind mount.
> 
> References
> 
>    Visible links
>    1. mailto:kragen@canonical.org

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21209: /gnu/store should be able to be a symlink, but it can't
  2015-08-08  9:31   ` Pjotr Prins
@ 2015-08-08 15:48     ` Kragen Javier Sitaker
  0 siblings, 0 replies; 5+ messages in thread
From: Kragen Javier Sitaker @ 2015-08-08 15:48 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: 21209

On Sat, Aug 08, 2015 at 11:31:19AM +0200, Pjotr Prins wrote:
> it is by design that you can't symlink.

If that is true (and it seems like a rather strange design; why would somebody
want that?) I think that the error message should explain that rather than
simply complaining that /gnu/store is "not a directory".

> On Sat, Aug 08, 2015 at 06:51:17AM +0200, Claes Wallin wrote:
> >    On 07-Aug-2015 11:22 pm, "Kragen Javier Sitaker" <[1]kragen@canonical.org>
> >    wrote:
> >    > I’m working around that by directly mounting the /gnustore partition
> >    > under /gnu/store now.
> > 
> >    You don't need to make a new file system and a loop mount. You could just
> >    make a bind mount.

Indeed, but I had already made the new filesystem, for other reasons.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21209: /gnu/store should be able to be a symlink, but it can't
  2015-08-07 16:03 bug#21209: /gnu/store should be able to be a symlink, but it can't Kragen Javier Sitaker
  2015-08-08  4:51 ` Claes Wallin
@ 2015-08-18 17:52 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2015-08-18 17:52 UTC (permalink / raw)
  To: Kragen Javier Sitaker; +Cc: 21209

Kragen Javier Sitaker <kragen@canonical.org> 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’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-18 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07 16:03 bug#21209: /gnu/store should be able to be a symlink, but it can't Kragen Javier Sitaker
2015-08-08  4:51 ` Claes Wallin
2015-08-08  9:31   ` Pjotr Prins
2015-08-08 15:48     ` Kragen Javier Sitaker
2015-08-18 17:52 ` Ludovic Courtès

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).