[buildd-tools-devel] Bug#688750: Bug#688750: schroot and autofs need better integration
Roger Leigh
rleigh at codelibre.net
Sat Nov 3 17:01:30 UTC 2012
On Thu, Nov 01, 2012 at 04:38:09PM +0100, Reinhard Tartler wrote:
> On Thu, Nov 1, 2012 at 3:34 PM, Reinhard Tartler <siretart at gmail.com> wrote:
>
> >
> > Nevertheless, I've also implemented another approach, which uses the host
> > automount binary. I did not test the script extensively, but it seems to
> > work as a proof of concept on both schroot 1.4 and schroot 1.6 branches.
> > I'm sure that it could be greatly simplified with some little changes to
> > automount and schroot, but it should be good enough to demonstrate the
> > idea. Please find that script, 71automount, attached to this email and
> > share your thoughts about this.
> >
> >
> It seems that 71automount alone is enough to break the --recover-session
> option, because 10mount fails to umount and mount all filesystems again. In
> order to fix this, I think that in the recover session case, a setup.d
> script must ensure that automount is properly killed. The attached
> 01automount files implements this.
>
> Roger, please tell me if this approach makes sense to you and what is
> missing so that these two scripts can be integrated into the schroot
> package properly.
Hi,
I'm afraid I'm not an autofs expert by any means, so I can't give great
feedback here. Some questions:
- what creates the new autofs map? And what is it based upon?
- does this require any autofs-related stuff installed in the chroot,
or is it only required on the host?
- what is this code actually for? Sorry for being uninformed here, but
I'm not sure I understand what the use case is for this. An example
would help.
- does this make rbind work again? Or is this a separate issue?
For the second point, we ideally don't want anything inside, because
we're potentially running binaries from a different architecture in the
chroot, and we haven't set up the emulation stuff at this point.
After being badly bitten by the rbind stuff last year, I am generally
quite wary of getting schroot involved in explicitly using autofs,
particularly when I don't understand it or its bugs. I'm sure that
some more detailed explanation will help here though.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the Buildd-tools-devel
mailing list