diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-05-22 00:41:58 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-05-22 00:41:58 +0000 |
commit | b478527a9c817d335324c9c5824ee3c3cd6fdc36 (patch) | |
tree | 806ed061b81fcf9412e9e09933e8c6af3e483d3a /ezjail-admin | |
parent | e71bebd00398541a96c70fe320c0062420b5a9e1 (diff) |
Release attached-lock only, if device has really been detached.
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 2 |
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 | ;; |