diff --git a/usr/lib/archboot/installer/autoprepare.sh b/usr/lib/archboot/installer/autoprepare.sh index 6dc410f6a..c946c10a9 100644 --- a/usr/lib/archboot/installer/autoprepare.sh +++ b/usr/lib/archboot/installer/autoprepare.sh @@ -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