View previous topic :: View next topic |
Author |
Message |
trapni Retired Dev
Joined: 16 May 2002 Posts: 251 Location: Germany/Berlin
|
Posted: Mon Jun 03, 2002 11:57 pm Post subject: how to emerge into custom root directory (/ --> /tmp/new) |
|
|
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 |
|
|
chadh Moderator
Joined: 21 Apr 2002 Posts: 137 Location: Atlanta, GA
|
Posted: Tue Jun 04, 2002 2:44 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Tue Jun 04, 2002 6:26 am Post subject: |
|
|
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 |
|
|
DArtagnan l33t
Joined: 30 Apr 2002 Posts: 942 Location: Israel, Jerusalem
|
Posted: Tue Jun 04, 2002 6:27 am Post subject: |
|
|
Then even you can burn this to a CD... _________________ All for one and one for All
--
MACPRO machine... |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Tue Jun 04, 2002 9:25 am Post subject: |
|
|
Why don't you just build using 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.
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 |
|
|
trapni Retired Dev
Joined: 16 May 2002 Posts: 251 Location: Germany/Berlin
|
Posted: Tue Jun 04, 2002 10:00 pm Post subject: |
|
|
Hugh? Thanks all.
Cheers,
Christian Parpart. |
|
Back to top |
|
|
|