This is the mail archive of the
mailing list for the Cygwin project.
RE: problem with chroot causing Cygwin to get confused about the root directory
- From: "Rolf Campbell" <rcampbell at tropicnetworks dot com>
- To: "Chris January" <chris at atomice dot net>,"Cygwin at Cygwin dot Com" <cygwin at cygwin dot com>
- Date: Sun, 1 Dec 2002 18:32:53 -0500
- Subject: RE: problem with chroot causing Cygwin to get confused about the root directory
When I try "chroot ." in bash I get:
$ chroot .
chroot: cannot execute /bin/sh: No such file or directory
> -----Original Message-----
> From: Chris January [mailto:firstname.lastname@example.org]
> Sent: Sunday, December 01, 2002 5:08 PM
> To: Cygwin@Cygwin.Com
> Subject: RE: problem with chroot causing Cygwin to get
> confused about the root directory
> > I'm having a problem with chroot - see the following strace:
> > At the start of the strace chroot (".") has been called; it
> > at time 63935. (The same problem occurs with chroot(<full path to
> > rootfs>) as well).
> > Then chdir ("/") is called at time 64000. The result of
> > conv_to_posix_path at time 2652 should be '/', but is instead
> > /cygdrive/c/... I'll look at the Cygwin source, but has anyone else
> > any ideas as I suspect it may take me some time to track this down.
> In the same vain, chroot . in bash goes into an infinite loop.
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html