From d7a199d9b184e87356b0f5e9c2fe14198402e87e Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Wed, 9 May 2012 10:42:38 +0300 Subject: [PATCH] Must umount /smack before trying to remove it --- debian/libsmack1.postrm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/libsmack1.postrm b/debian/libsmack1.postrm index 74b2886..1db416d 100644 --- a/debian/libsmack1.postrm +++ b/debian/libsmack1.postrm @@ -7,7 +7,12 @@ set -e case "$1" in purge|abort-install|remove|upgrade|failed-upgrade|abort-upgrade|disappear) - test -d /smack && rm -rf /smack + if [ -d /smack ] ; then + if mountpoint -q "/smack" ; then + umount /smack + fi + rm -rf /smack + fi ;; *) echo "postrm called with unknown argument \`$1'" >&2 -- 2.7.4