Doesn't cleanup tempdir if copying fails
Bug #624956 reported by
Loïc Minier
This bug report is a duplicate of:
Bug #1014139: flash-kernel fails to umount flash device after writing.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flash-kernel (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: flash-kernel
Hi
in omap_flash_
The script should install a cleanup handler like:
cleanup() {
if [ -n "$mnt_dir" ]; then
$sudo umount "$mnt_dir"
rmdir "$mnt_dir"
fi
}
trap "cleanup" 0 1 2 3 9 11 13 15
Thanks,
To post a comment you must log in.
(Oh and the partition wont be unmounted either)