Eliminate the exception in image-modify 79/29979/3
authorAlex Yang <yangyang1@zte.com.cn>
Tue, 7 Mar 2017 16:30:24 +0000 (00:30 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Thu, 9 Mar 2017 15:14:11 +0000 (23:14 +0800)
commit208f8e2530de8689bde6178d203f9bbe68de8b5c
tree3ba1a40b6d3851e86801f5b08700a6a8f7157a5f
parentad7a882c71c0ed779b2111f400ac6b8bd108e4c5
Eliminate the exception in image-modify

Sometimes kpartx fails when it deletes the partition device mappings
because of the automatic mounting to /run/media/root/xxxx. So umounting
and removing forcibly are needed.

Change-Id: Ic8a19ef9139adb9c0c5c4bead0ae0ffbd92f24b8
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
tools/daisy-img-modify.sh