View previous topic :: View next topic |
Author |
Message |
Vieri l33t
Joined: 18 Dec 2005 Posts: 874
|
Posted: Sun Mar 30, 2014 10:39 am Post subject: [SOLVED] chroot within chroot |
|
|
Hi,
From a live system I installed a Gentoo stage3 to a mount point and chroot'ed into it, emerged all the packages I needed then created a "target" subdir in which I started to emerge ROOT=targetdir packages:
Code: |
ROOT=/target emerge -avD baselayout glibc busybox
ROOT=/target emerge -avD ncurses bash sysvinit openrc dropbear
|
Now if I chroot into targetdir:
Code: | chroot /target /bin/bash |
then I'm having issues with the console.
For instance, I can't use "more verylongtextfile" because it won't display the text page by page. It will behave mroe like "cat verylongtextfile".
Also and most important, I can't run the passwd command because it won't "read" the password. "passwd" asks for the user's password but doesn't wait for user input.
Surely I must be doing something wrong with the console when chroot'ing into it. Don't really know how to rbind /dev into a second chroot.
Help appreciated.
Vieri
[EDIT] I wasn't mounting dev and sys correctly. The issue is solved. |
|
Back to top |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 488 Location: Gainesville, FL, USA
|
Posted: Wed Apr 02, 2014 3:42 am Post subject: Re: [SOLVED] chroot within chroot |
|
|
Vieri wrote: | [EDIT] I wasn't mounting dev and sys correctly. The issue is solved. |
Funny, I wondered the very thing as I read your post. Don't you hate how that kind of silly forgetfulness can slip up on you? Sigh, I know the experience too well. |
|
Back to top |
|
|
Vieri l33t
Joined: 18 Dec 2005 Posts: 874
|
Posted: Wed Apr 02, 2014 4:10 pm Post subject: |
|
|
It happens too often... |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Wed Apr 02, 2014 8:17 pm Post subject: |
|
|
It's downhill from here on in.. ;-) |
|
Back to top |
|
|
|