Fix GPT option not working if disk is over 2TB (#387)

This commit is contained in:
f0rdprefect 2020-08-11 04:52:49 +02:00 committed by GitHub
parent 1186caba41
commit 89b7232b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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