DISK size in MiB

This commit is contained in:
Tobias Powalowski 2023-02-03 15:01:17 +01:00
parent 7555474c58
commit 7ecf1ecb20

View file

@ -34,7 +34,7 @@ _autoprepare() {
_BOOTDEV_SIZE=""
_UEFISYSDEV_SIZE=""
# get just the disk size in 1000*1000 MB
_DISK_SIZE="$(($(${_LSBLK} SIZE -d -b "${_DISK}")/1000000))"
_DISK_SIZE="$(($(${_LSBLK} SIZE -d -b "${_DISK}")/1048576))"
if [[ -z "${_DISK_SIZE}" ]]; then
_dialog --msgbox "ERROR: Setup cannot detect size of your device, please use normal installation routine for partitioning and mounting devices." 0 0
return 1