Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [Prefix Support]How to move a prefix to other path ?
Date: Sat, 27 Dec 2008 11:03:46
Message-Id: 20081227110334.GA3342@gentoo.org
In Reply to: Re: [gentoo-alt] [Prefix Support]How to move a prefix to other path ? by Galaxy
1 On 27-12-2008 09:18:29 +0800, Galaxy wrote:
2 > I was wondering whether it can be done with little modification in
3 > 'etc/' and an 'emerge -e', since not, I'll choose rebootstrap.
4 > Thanks.
5
6 that little modification would be exporting EPREFIX, as it overrides
7 Portage's built-in EPREFIX setting. An emerge -e should then compile
8 everything for the (target) EPREFIX you set.
9
10
11 > > On 26-12-2008 21:22:02 +0800, Galaxy wrote:
12 > > > I have a Gentoo Prefix at '/shared/raid8/galaxy/gentoo' , I want to
13 > > > move it to '/shared/raid12/galaxy/gentoo' . Which files should be
14 > > > edited ?
15 > > >
16 > > > And, an 'emerge -e system' should be done since something like perl
17 > > > must be reconfigured, right ?
18 > >
19 > > The best way to do it in this case, is just to rebootstrap.
20 > >
21 > > You basically need to reemerge *every* package. If you don't like
22 > > rebootstrapping, you can try to set EPREFIX to the new location, and
23 > > run `emerge -1e @system @world`. I'm not sure if that works
24 > > correctly, but should effectively "clone" your Prefix to your new
25 > > location. I've never done this, so it might not work correctly.
26 > >
27 > > Frankly, rebootstrapping is the easiest and least error-prone solution
28 > > in this case.
29 > >
30 > >
31 >
32
33 --
34 Fabian Groffen
35 Gentoo on a different level