mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-27 10:14:27 +01:00
Merge pull request #324 from clarklee92/master
image-builder: get mount directory size with Mb format
This commit is contained in:
@@ -233,7 +233,7 @@ calculate_required_disk_size() {
|
||||
die "Could not format loop device: ${device}"
|
||||
fi
|
||||
mount "${device}p1" "${mount_dir}"
|
||||
avail="$(df -h --output=avail "${mount_dir}" | tail -n1 | sed 's/[M ]//g')"
|
||||
avail="$(df -BM --output=avail "${mount_dir}" | tail -n1 | sed 's/[M ]//g')"
|
||||
umount "${mount_dir}"
|
||||
losetup -d "${device}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user