Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to emerge into custom root directory (/ --> /tmp/new)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
trapni
Retired Dev
Retired Dev


Joined: 16 May 2002
Posts: 251
Location: Germany/Berlin

PostPosted: Mon Jun 03, 2002 11:57 pm    Post subject: how to emerge into custom root directory (/ --> /tmp/new) Reply with quote

Hi all,

I'm currently creating a rescue cd for my computer and it would be nice to have an option like --prefix for emerge to tell him to install the binaries into a special directory (which will be later my .iso root dir).

Does anyone know how to do this?

Thanks in advance,
Christian Parpart.
Back to top
View user's profile Send private message
chadh
Moderator
Moderator


Joined: 21 Apr 2002
Posts: 137
Location: Atlanta, GA

PostPosted: Tue Jun 04, 2002 2:44 am    Post subject: Reply with quote

You cannot change the location that the packages are installed. The --prefix argument is hardcoded in most ebuilds.

However, there is an even better solution. Just install a new system to a chroot, exactly like you did in the install. You can unzip a build image, chroot to it, and then emerge sync, bootstrap, etc.
_________________
Chad
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 6:26 am    Post subject: Reply with quote

Hmmm, great idea.
Lett say that I already have Gentoo installed and I'm paranoid :-) ( I'm not ) .

I boot the computer exactly like this is first time I install Gentoo, ofcourse pass the fdisk steps and mkeswap, mke2fs...load the network, choot to /backup ( for example ) and do a fresh instalation of Gentoo.

I'm correct?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 6:27 am    Post subject: Reply with quote

Then even you can burn this to a CD...
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Tue Jun 04, 2002 9:25 am    Post subject: Reply with quote

Why don't you just build using
Code:
emerge -b
then the packages will get into /usr/portage/packages/... these tar files can be unpacked, well you get a message about some garbage add the end, but it works.

:idea: Remember that using your prebuild system you can get issues with files depending on libraries, which you probably don't want to include on your rescue cd (X for example), so rebuilding from scratch is a much better solution.

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
trapni
Retired Dev
Retired Dev


Joined: 16 May 2002
Posts: 251
Location: Germany/Berlin

PostPosted: Tue Jun 04, 2002 10:00 pm    Post subject: Reply with quote

Hugh? Thanks all.

Cheers,
Christian Parpart.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum