mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
DISK size in MiB
This commit is contained in:
parent
7555474c58
commit
7ecf1ecb20
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue