[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How best to make nfs mounts also available in chroot env?



On Mon, Jan 09, 2006 at 11:39:22AM -0800, RParr wrote:
> I have installed Debian sid AMD64
> and installed an ia32 chroot per instructions at 
> http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id271960
> 
> Now I am trying to restore the chroot bind mounts upon reboot.
> 
> I am running into a problem however because some of the bind mounts are to NFS 
> mounted "shared" directories.
> 
> It appears the NFS mounts are not made until after the local and bind mounts 
> are made.  This means the bind mounts are made to the empty NFS mount points
> and not the actual NFS mounted directories.
> 
> Before I add my own brute-force solution to /etc/init.d I wanted to inquire if 
> this is a known problem and/or what the preferred, Debian-way, to fix this 
> mount ordering problem.

This is a limitation of bind mounts.  I don't think there is any good
solution to it at this time.  Mounting the NFS to the chroot, and having
the main system symlink to the chroot seems like a popular solution.

Len Sorensen



Reply to: