[buildd-tools-devel] Bug#600966: Bug#600966: Bug#600966: Leaves behind empty dirs in /var/lib/schroot/mount with type=file
Roger Leigh
rleigh at codelibre.net
Fri Oct 22 13:48:38 UTC 2010
On Fri, Oct 22, 2010 at 01:43:38PM +0200, Loïc Minier wrote:
> On Fri, Oct 22, 2010, Roger Leigh wrote:
> > If you edit /etc/schroot/setup.d/10mount:
> > # Purge mount location.
> > # The contents of file chroots are purged separately, because
> > # we might want to repack the contents.
> > if [ "$CHROOT_TYPE" != "file" ]; then
> > if echo "$CHROOT_MOUNT_LOCATION" | grep -q "^$MOUNT_DIR/"; then
> > if [ -d "$CHROOT_MOUNT_LOCATION" ]; then
> > rmdir "$CHROOT_MOUNT_LOCATION"
> > fi
> > fi
> > fi
> > and remove the "if [ "$CHROOT_TYPE" != "file" ]; then" and "fi" at the end of
> > that block so it's always run, do you see correct purging then?
>
> I commented out 'if [ "$CHROOT_TYPE" != "file" ]; then' and the
> corresponding 'fi' and that fixed the issue; thanks!
Thanks for testing that. I'll remove those lines in the next release;
hopefully it can be fixed for squeeze.
Thanks again,
Roger
--
.''`. 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101022/19417b47/attachment.pgp>
More information about the Buildd-tools-devel
mailing list