error when umounting irritates users, this is a cleanup function, so it should silently fail, if nothing is mounted.
This commit is contained in:
parent
e46d467c52
commit
b37e9be763
@ -80,7 +80,7 @@ attach_images () {
|
||||
detach_images () {
|
||||
# unmount and detach memory disc
|
||||
if [ -n "${ezjail_imagedevice}" ]; then
|
||||
umount ${ezjail_rootdir} > /dev/null
|
||||
umount ${ezjail_rootdir} > /dev/null 2> /dev/null
|
||||
case ${ezjail_imagetype} in
|
||||
bde) gbde detach /dev/${ezjail_imagedevice} > /dev/null;;
|
||||
eli) geli detach /dev/${ezjail_imagedevice} > /dev/null;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user