Fix GPT option not working if disk is over 2TB

This commit is contained in:
Matthias Berse 2020-08-10 14:32:38 +02:00
parent 1186caba41
commit 21be4a4d1c

View File

@ -144,7 +144,7 @@ if [ "$MODE" = "install" ]; then
disk_sector_num=$(cat /sys/block/${DISK#/dev/}/size)
disk_size_gb=$(expr $disk_sector_num / 2097152)
if [ $disk_sector_num -gt 4294967296 ]; then
if [ $disk_sector_num -gt 4294967296 ] && [ -z $VTGPT ]; then
vterr "$DISK is over 2TB size, MBR will not work on it."
exit 1
fi