[buildd-tools-devel] Bug#600966: Bug#600966: Bug#600966: Leaves behind empty dirs in /var/lib/schroot/mount with type=file

Loïc Minier lool at dooz.org
Fri Oct 22 11:43:38 UTC 2010


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!

-- 
Loïc Minier





More information about the Buildd-tools-devel mailing list