View previous topic :: View next topic |
Author |
Message |
z3ro Apprentice
Joined: 16 Jun 2004 Posts: 261
|
Posted: Mon Nov 08, 2004 3:16 am Post subject: Can it be done without the need for "chroot"? |
|
|
Okay, this is sort of a strange question but anyway... I need to setup a few gentoo environments - for User Mode Linux, but I need to do this without being root.
I have everything else figured out, except for compiling the actual UML Gentoo system. I would extract the stage1 tarball to /home/user/umls/n (where n is the number of the UML environment - a bash script is creating them. Then I would setup make.conf, and any of the other config files - that is easy.
Now, because I do not want to chroot into the "UML Gentoo" I don't need to mount proc, so no problems there.
Basically, here is where it gets tricky:
Code Listing 4: Chrooting into the new environment wrote: | # chroot /mnt/gentoo /bin/bash
# env-update
* Caching service dependencies...
# source /etc/profile |
Instead of chrooting into the system, and running env-update to set it up is is possible to update the environment vars so that I could proceed and run "emerge sync" and "emerge system" and have them work on the "UML Gentoo" and not the host system?
Hmm. I hope this makes sense and you understand what I am trying to say, it is rather hard to explain. Anyway, if you have any information on this... |
|
Back to top |
|
|
TJNII l33t
Joined: 09 Nov 2003 Posts: 637 Location: for(;;);
|
Posted: Mon Nov 08, 2004 7:35 am Post subject: |
|
|
You can't install a new gentoo instalation without root access to it. Can you elaborate on why you can't be root so that we can go from there? I have the feeling that you may be misinformed on something but I don't want to insult your intellegence by assuming it. _________________ Maintaining documentation on upgrades is apparently not within the power of Gentoo
Beware when you emerge -u world! |
|
Back to top |
|
|
z3ro Apprentice
Joined: 16 Jun 2004 Posts: 261
|
Posted: Mon Nov 08, 2004 2:28 pm Post subject: |
|
|
I am writing a script to automate the creation and setup of some UML environments. I wanted to do it without the need to be root but obviously that is not possible so I will just have the script check to make sure that $UID=0.
No, I am not misinformed.
Thanks anyway. |
|
Back to top |
|
|
|