Release attached-lock only, if device has really been detached.
This commit is contained in:
parent
e71bebd003
commit
b478527a9c
@ -671,7 +671,7 @@ config)
|
||||
detach_images keep
|
||||
|
||||
# Remove soft link (which acts as a lock)
|
||||
rm -f ${ezjail_rootdir}.device
|
||||
[ -e /dev/${ezjail_imagedevice} ] || rm -f ${ezjail_rootdir}.device
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user