Mailinglist Archive: opensuse (4498 mails)

< Previous Next >
Re: [opensuse] chroot: cannot run command `/bin/bash': No such file or directory
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Mon, 13 Nov 2006 08:48:15 -0800
  • Message-id: <200611130848.15648.rschulz@xxxxxxxxx>
Carlos,

On Monday 13 November 2006 07:35, Carlos E. R. wrote:
> The Monday 2006-11-13 at 06:41 -0800, Martin Mielke wrote:
> > # pwd
> > /disk2/mnt/sources
> >
> > # chroot /disk2/mnt/sources
> > chroot: cannot run command `/bin/bash': No such file or directory
>
> Mi understanding is that trying to run a command that is not local to
> the chroot environment would fail. But the chroot command itself
> should run.

If you run chroot with only the new root directory name, it's kind of
like "su," in that it runs an interactive shell. Or tries to. In this
case, there was no shell to run (or one of its dynamic dependencies
could not be resolved), so an error results.

It's all in the man page.


> ...


Randall Schulz
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >