Gentoo Archives: gentoo-user

From: Tomas Mozes <tomas.mozes@××××.sk>
To: gentoo-user@l.g.o
Cc: Peter Humphrey <peter@××××××××××××.uk>
Subject: Re: [gentoo-user] Moving the portage tree to /var
Date: Tue, 07 Oct 2014 16:05:33
Message-Id: c85c8906c422c2d6c673b27aded66921@shmu.sk
In Reply to: Re: [gentoo-user] Moving the portage tree to /var by Tomas Mozes
1 On 2014-10-07 17:57, Tomas Mozes wrote:
2 > On 2014-10-07 17:09, Peter Humphrey wrote:
3 >> Afternoon all,
4 >>
5 >> As a step towards exporting my portage tree over NFS I decided to move
6 >> /usr/portage to /var/portage, but leave /usr/portage/packages and
7 >> /usr/portage/distfiles where they are.
8 >>
9 >> This is how it looks now:
10 >>
11 >> $ grep DIR= /etc/portage/make.conf
12 >> DISTDIR="/usr/portage/distfiles"
13 >> PKGDIR="/usr/portage/packages"
14 >> PORTDIR="/var/portage"
15 >>
16 >> $ ls -l /etc/portage/make.profile
17 >> lrwxrwxrwx 1 root root 51 Oct 7 15:28 /etc/portage/make.profile ->
18 >> ../../var/portage/profiles/default/linux/amd64/13.0
19 >>
20 >> $ mount | grep portage
21 >> /dev/mapper/vg7-portage on /var/portage type ext4 (rw,relatime)
22 >> /dev/mapper/vg7-packages on /usr/portage/packages type ext4
23 >> (rw,relatime)
24 >> /dev/mapper/vg7-distfiles on /usr/portage/distfiles type ext4
25 >> (rw,relatime)
26 >>
27 >> This seems to work OK, except for eix-update, which gives me this:
28 >>
29 >> $ eix-update
30 >> Reading Portage settings ..
31 >> Building database (/var/cache/eix/portage.eix) ..
32 >> [0] "gentoo" /var/portage/ (cache: metadata-md5-or-flat)
33 >> Reading category 162|162 (100%) Finished
34 >> [1] "" /usr/portage (cache:
35 >> parse|ebuild*#metadata-md5#metadata-flat#assign)
36 >> Reading category 162|162 (100%) EMPTY!
37 >> [...]
38 >>
39 >> Evidently something is still pointing to /usr/portage, but I can't see
40 >> what. I
41 >> used to have layman and a couple of overlays on this box, but they've
42 >> now
43 >> gone. Well, maybe I left something lying around.
44 >>
45 >> I've grepped for likely-looking strings, read the docs and prodded
46 >> google, but
47 >> I can't see what I'm missing. Would someone please help me out? I'm
48 >> sure I'm
49 >> just being dense.
50 >
51 > Try adjusting /etc/portage/repos.conf/gentoo.conf
52
53 Sorry, didn't see the reply before.