Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] chroot within chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 874

PostPosted: Sun Mar 30, 2014 10:39 am    Post subject: [SOLVED] chroot within chroot Reply with quote

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
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 488
Location: Gainesville, FL, USA

PostPosted: Wed Apr 02, 2014 3:42 am    Post subject: Re: [SOLVED] chroot within chroot Reply with quote

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
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 874

PostPosted: Wed Apr 02, 2014 4:10 pm    Post subject: Reply with quote

It happens too often...
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed Apr 02, 2014 8:17 pm    Post subject: Reply with quote

It's downhill from here on in.. ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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