Changelog: None Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
@ -463,17 +463,6 @@ mender_image_size_to_total_storage_size() {
return 0
}
# Takes following arguments:
#
# $1 - raw disk image
unmount_partitions() {
log "Check if device is mounted..."
is_mounted=`grep ${1} /proc/self/mounts | wc -l`
if [ ${is_mounted} -ne 0 ]; then
sudo umount ${1}?*
fi
# $1 - raw disk image path