[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.51-48-g1e35129
Andreas Beckmann
anbe at debian.org
Mon May 27 10:04:42 UTC 2013
The following commit has been merged in the develop branch:
commit c07746681c775319ec179f22f4e2e432757629f1
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun May 26 10:03:06 2013 +0200
use rm --one-file-system for a bit more safety
mount may not work reliably if symlinks are involved ...
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/debian/piuparts-slave.postrm b/debian/piuparts-slave.postrm
index 2308ec2..826743d 100644
--- a/debian/piuparts-slave.postrm
+++ b/debian/piuparts-slave.postrm
@@ -19,7 +19,7 @@ if [ "$1" = "purge" ] ; then
rm -rf /var/cache/piuparts/basetgz/*.tar.gz
# rm -rf is safe if it's not mounted anymore
- mount | grep -q /var/cache/piuparts/tmp || rm -rf /var/cache/piuparts/tmp
+ mount | grep -q /var/cache/piuparts/tmp || rm -rf --one-file-system /var/cache/piuparts/tmp
rmdir /var/cache/piuparts 2>/dev/null || true
fi
--
piuparts git repository
More information about the Piuparts-commits
mailing list