[Buildd-tools-devel] Bug#489116: Bug#489116: Bug#489116: schroot: possible race condition during chroot setup?
Roger Leigh
rleigh at whinlatter.ukfsn.org
Fri Jul 11 14:18:24 UTC 2008
On Fri, Jul 11, 2008 at 03:15:34PM +0200, Lucas Nussbaum wrote:
> On 04/07/08 at 00:07 +0200, Lucas Nussbaum wrote:
> > I'm using file chroots.
>
> It seems that this is caused by mount failing to lock /etc/mtab (because
> another build process is already mounting an FS). mount
> returns 16 in that case according to mount(8). I think that it would
> make sense to retry mounting once or twice in that case.
>
> This occured 6 times during my full archive rebuild today.
That's annoying! Ideally, mount(8) should wait on the lock for a bit
rather than failing immediately.
We can certainly implement this in schroot-mount using itimers, and do
some sort of loop in do_mount in the 10mount script.
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
More information about the Buildd-tools-devel
mailing list