Gentoo Archives: gentoo-embedded

From: Dirk Gassen <dirk.gassen@×××.de>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Chroot the environment
Date: Sat, 26 May 2007 03:21:51
Message-Id: C24B1AEC-4B9C-4B2B-B212-4936AFB8640C@web.de
In Reply to: [gentoo-embedded] Chroot the environment by The MoonSeeker
1 Since you didn't install bash chroot cannot execute bash ;-).
2
3 I think the bash comes from your current root account on your host,
4 which is set to /bin/bash (check /etc/passwd). Therefore, chroot will
5 execute /bin/bash as the default shell.
6
7 Try
8 chroot /tmp/minime /bin/busybox ash
9
10 Dirk
11
12 Am 25.05.2007 um 07:42 schrieb The MoonSeeker:
13
14 > Hi,
15 >
16 > Is it to possible to chroot the after we create it (USE=-iconv
17 > ACCEPT_KEYWORDS="**" ROOT="/tmp/minime" emerge -avkN uclibc busybox
18 > baselayout-lite dropbear), because i get this error :
19 >
20 > chroot /tmp/minime/
21 > chroot: can't execute `/bin/bash': No such file or directory
22 >
23 > localhost ~ # ls /tmp/minime/bin/bash
24 > /tmp/minime/bin/bash
25 >
26 > What's wrong?
27 > thanks
28 > --
29 > gentoo-embedded@g.o mailing list
30 >
31
32 --
33 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] Chroot the environment The MoonSeeker <themoonseeker@×××××.com>
Re: [gentoo-embedded] Chroot the environment The MoonSeeker <themoonseeker@×××××.com>