summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-05-22 00:41:58 +0000
committererdgeist <erdgeist@erdgeist.org>2006-05-22 00:41:58 +0000
commitb478527a9c817d335324c9c5824ee3c3cd6fdc36 (patch)
tree806ed061b81fcf9412e9e09933e8c6af3e483d3a
parente71bebd00398541a96c70fe320c0062420b5a9e1 (diff)
Release attached-lock only, if device has really been detached.
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 4d59de3..1a6545c 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -671,7 +671,7 @@ config)
671 detach_images keep 671 detach_images keep
672 672
673 # Remove soft link (which acts as a lock) 673 # Remove soft link (which acts as a lock)
674 rm -f ${ezjail_rootdir}.device 674 [ -e /dev/${ezjail_imagedevice} ] || rm -f ${ezjail_rootdir}.device
675 ;; 675 ;;
676 esac 676 esac
677 ;; 677 ;;