<br><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 5:14 PM, Michael Tokarev <span dir="ltr"><<a href="mailto:mjt@tls.msk.ru" target="_blank">mjt@tls.msk.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On <a href="tel:25.09.2012%2015" value="+12509201215" target="_blank">25.09.2012 15</a>:34, Reinhard Tartler wrote:<br><br>
> In order to solve this, I see two possibilities: a) enhance the autofs<br>
> init script to become chroot-aware. b) extend schroot to start autofs<br>
> managed mount points by itself, ideally using the host-provided autofs<br>
> programs so that autofs does not need to be installed into the chroot.<br>
<br>
There's one more solution which is not listed but which is the only<br>
real solution: fix the real issue instead of designing workarounds<br>
of various levels of "quality".<br>
<br>
The thing is: autofs is very messy thing, both userspace and kernel.<br></blockquote><div><br></div><div>Well, I agree that fixing rbinds to behave properly in this use-case would be ideal, my research on the relevant bugreports however show that there seems disagreement among kernel developers about what would be the right sematics here. Therefore, it does not currently look like that is is a doable option right now.</div>

<div><br></div><div>Since I'm on stable, I have tried using schroot 1.4.x a setup.d script based on 70services from the 1.6 series to start autofs inside the chroot. This is still rather messy, as the chroot not only needs the autofs binaries but also a working nis environment as that's were most of our automount maps come from. If you are interested, I can share that file.</div>
<div><br></div><div>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.</div>
<div><br></div><div>thanks.</div><div><br></div></div><div><br></div>-- <br>regards,<br>    Reinhard<br>