If cowbuilder failed to unmount a bind-mounted directory (device busy for example) it unconditionally deletes its content during the clean-up phase.
Excerpt from a log with this bug (complete log attached)
=====
I: umounting /var/lib/jenkins/cu2d
umount: /var/cache/pbuilder/build/cow.15281/var/lib/jenkins/cu2d: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
[...]
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.1195
rm: cannot remove `/var/cache/pbuilder/build//cow.1195/var/cache/pbuilder/ccache': Device or resource busy
rm: cannot remove `/var/cache/pbuilder/build//cow.1195/var/lib/jenkins/cu2d/work/experimental/100scopes': Device or resource busy
rm: cannot remove `/var/cache/pbuilder/build//cow.1195/var/lib/jenkins/cu2d/launchpad.cache': Directory not empty
=====
The 'rm' command must skip directories on other filesystems
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: cowbuilder 0.71
ProcVersionSignature: Ubuntu 3.8.0-12.21-generic 3.8.2
Uname: Linux 3.8.0-12-generic x86_64
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
Date: Mon Mar 18 11:08:38 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cowdancer
UpgradeStatus: Upgraded to raring on 2012-01-31 (411 days ago)
If cowbuilder failed to unmount a bind-mounted directory (device busy for example) it unconditionally deletes its content during the clean-up phase.
Excerpt from a log with this bug (complete log attached) jenkins/ cu2d pbuilder/ build/cow. 15281/var/ lib/jenkins/ cu2d: device is busy. pbuilder/ build// cow.1195 pbuilder/ build// cow.1195/ var/cache/ pbuilder/ ccache' : Device or resource busy pbuilder/ build// cow.1195/ var/lib/ jenkins/ cu2d/work/ experimental/ 100scopes' : Device or resource busy pbuilder/ build// cow.1195/ var/lib/ jenkins/ cu2d/launchpad. cache': Directory not empty
=====
I: umounting /var/lib/
umount: /var/cache/
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
[...]
-> Cleaning COW directory
forking: rm -rf /var/cache/
rm: cannot remove `/var/cache/
rm: cannot remove `/var/cache/
rm: cannot remove `/var/cache/
=====
The 'rm' command must skip directories on other filesystems
ProblemType: Bug ature: Ubuntu 3.8.0-12.21-generic 3.8.2 DIR=<set>
DistroRelease: Ubuntu 13.04
Package: cowbuilder 0.71
ProcVersionSign
Uname: Linux 3.8.0-12-generic x86_64
ApportVersion: 2.9.1-0ubuntu1
Architecture: amd64
Date: Mon Mar 18 11:08:38 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cowdancer
UpgradeStatus: Upgraded to raring on 2012-01-31 (411 days ago)