diff options
author | erdgeist <erdgeist@erdgeist.org> | 2007-01-15 14:08:17 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2007-01-15 14:08:17 +0000 |
commit | b37e9be76301f0c7860c0b60a1030d8fa5e20220 (patch) | |
tree | f54bdb65a799572c4544e6fc36e3f00264c64b10 /ezjail-admin | |
parent | e46d467c528001f9621758439e0e3ec17a11b490 (diff) |
error when umounting irritates users, this is a cleanup function, so it should silently fail, if nothing is mounted.
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 d0a79ec..2062ebd 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -80,7 +80,7 @@ attach_images () { | |||
80 | detach_images () { | 80 | detach_images () { |
81 | # unmount and detach memory disc | 81 | # unmount and detach memory disc |
82 | if [ -n "${ezjail_imagedevice}" ]; then | 82 | if [ -n "${ezjail_imagedevice}" ]; then |
83 | umount ${ezjail_rootdir} > /dev/null | 83 | umount ${ezjail_rootdir} > /dev/null 2> /dev/null |
84 | case ${ezjail_imagetype} in | 84 | case ${ezjail_imagetype} in |
85 | bde) gbde detach /dev/${ezjail_imagedevice} > /dev/null;; | 85 | bde) gbde detach /dev/${ezjail_imagedevice} > /dev/null;; |
86 | eli) geli detach /dev/${ezjail_imagedevice} > /dev/null;; | 86 | eli) geli detach /dev/${ezjail_imagedevice} > /dev/null;; |