Re: chroot, autofs, and bind
- To: email@example.com
- Subject: Re: chroot, autofs, and bind
- From: Martin Schmid <firstname.lastname@example.org>
- Date: Thu, 16 Feb 2006 13:43:46 +0100
- Message-id: <1140093826.5121.5.camel@localhost>
- Reply-to: email@example.com
- In-reply-to: <Pine.LNX.4.63.0512151551220.3307@localhost>
- References: <Pine.LNX.4.63.0512151551220.3307@localhost>
On Thu, 2005-12-15 at 16:13 +0100, Martin Schmid wrote:
> We want to set up some amd-64 machines in an i686 environment.
> To do so, we would like to follow the approach witch a
> chrooted 32-bit environment on the 64-bit machines as discribed
> in the amd-64 HowTo .Especially, one needs to have access to the
> data in the /home-directory under the chroot also, which can be
> solved using a bind-mount.
> However, in our situation the /home directory is mounted from
> a server using autofs. Bind-mounting an autofs-imported
> filesystem is not a great idea, since this leads inevitably
> to kernel crashes (we are using kernel 2.6.12 and automount
> At the moment, we have the following workaround:
> mounting the autofs-exported /home not into the native 64-bit
> environment, but into the 32-bit chroot, instead. The /home in the
> 64-bit environment is a symlink pointing to /home in the chroot.
> Is this workaraound reliable? Are there better solutions?
No, there will be programs looking for files in the chroot in the chroot
itself, which makes no sense.
Simply mount the /home directory twice, once in /home and once in the