|
@ -463,17 +463,6 @@ mender_image_size_to_total_storage_size() { |
|
|
return 0 |
|
|
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 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Takes following arguments: |
|
|
# Takes following arguments: |
|
|
# |
|
|
# |
|
|
# $1 - raw disk image path |
|
|
# $1 - raw disk image path |
|
|