From da08fe6b40beaffd28d24b7ef10aa5cc462cf7e7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 18 Oct 2007 12:30:15 +0000 Subject: umount usb device if loopback copy fails --- draklive | 2 ++ 1 file changed, 2 insertions(+) diff --git a/draklive b/draklive index 22678ac..2f05379 100755 --- a/draklive +++ b/draklive @@ -1211,6 +1211,8 @@ sub record_usb_master { ); unlink $list_file; if (!$r) { + run_('umount', $live->{mnt}); + maybe_umount_device($device); die "unable to copy loopback files\n"; } -- cgit v1.2.1